netspotau/moodle-mod_assign — pull request #3 by davosmith (2012-04-09 14:48:24+00:00)
Title: MDL-31270: Extra hooks for mod_assign submission plugins for when work i...

...s submitted for grading

A submission plugin can prevent an assignment from being submitted for grading, if the submission requirements are not yet met
A submission plugin can do any desired extra processing when the assignment is submitted for grading

For clarity, here are a couple of of usage scenarios (based on my own usage in teaching situations):
* A 'checklist' submission type, that requires all items on a given checklist activity (from CONTRIB) to be ticked before an assignment can be submitted
* When using my pdf assignment type, a student must have completed all of the required elements for the coversheet, before the work can be submitted (if coversheets are in use)
* Again with the pdf assignment type, on submission all files are processed and combined into a pdf (including annotated coversheet)
* I could also imagine an assignment type that submitted all the files to some sort of external service, at the point when the student clicks 'submit for grading'.