Permalink
Browse files

MDL-39760: mod_assign: Make submit_for_grading accept submission as p…

…arameter.
  • Loading branch information...
1 parent f5dd4b4 commit c07c4324c725a01d35e4553cb08111c202dd7927 @kabalin kabalin committed May 17, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 mod/assign/locallib.php
  2. +3 −1 mod/assign/submissionplugin.php
View
@@ -3590,7 +3590,7 @@ private function process_submit_for_grading($mform) {
// Give each submission plugin a chance to process the submission
$plugins = $this->get_submission_plugins();
foreach ($plugins as $plugin) {
- $plugin->submit_for_grading();
+ $plugin->submit_for_grading($submission);
}
$submission->status = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
@@ -69,9 +69,11 @@ public function precheck_submission() {
/**
* Carry out any extra processing required when the work is submitted for grading
+ *
+ * @param stdClass $submission - assign_submission data
* @return void
*/
- public function submit_for_grading() {
+ public function submit_for_grading(stdClass $submission) {
}
}

0 comments on commit c07c432

Please sign in to comment.