Permalink
Browse files

MDL-35710 mode_assign Make submission event trigger name more precise

  • Loading branch information...
1 parent 2105f57 commit f04523f07e54abe6a0aeab3ce5ea02cd834ffb08 @kabalin kabalin committed with Damyon Wiese Oct 1, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 mod/assign/db/events.php
  2. +2 −2 mod/assign/locallib.php
View
@@ -43,7 +43,7 @@
->userid = // The user id that the attempt belongs to.
->pathnamehashes = // An array of pathnamehashes of the files submitted by the user (var not passed if not set).
-assessable_content_done
+assessable_submitted
->modulename = 'assign';
->cmid = // The cmid of the assign.
->itemid = // The submission id of the user submission.
View
@@ -3325,14 +3325,14 @@ private function process_submit_for_grading($mform) {
$this->add_to_log('submit for grading', $this->format_submission_for_log($submission));
$this->notify_graders($submission);
$this->notify_student_submission_receipt($submission);
- // Trigger assessable_content_done event to show completion
+ // Trigger assessable_submitted event on submission
$eventdata = new stdClass();
$eventdata->modulename = 'assign';
$eventdata->cmid = $this->get_course_module()->id;
$eventdata->itemid = $submission->id;
$eventdata->courseid = $this->get_course()->id;
$eventdata->userid = $USER->id;
- events_trigger('assessable_content_done', $eventdata);
+ events_trigger('assessable_submitted', $eventdata);
}
}
return true;

0 comments on commit f04523f

Please sign in to comment.