mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-35710 mode_assign Make submission event trigger name more precise
This commit is contained in:
parent
2105f57590
commit
f04523f07e
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ assessable_file_uploaded
|
||||||
->userid = // The user id that the attempt belongs to.
|
->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).
|
->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';
|
->modulename = 'assign';
|
||||||
->cmid = // The cmid of the assign.
|
->cmid = // The cmid of the assign.
|
||||||
->itemid = // The submission id of the user submission.
|
->itemid = // The submission id of the user submission.
|
||||||
|
|
|
@ -3325,14 +3325,14 @@ class assign {
|
||||||
$this->add_to_log('submit for grading', $this->format_submission_for_log($submission));
|
$this->add_to_log('submit for grading', $this->format_submission_for_log($submission));
|
||||||
$this->notify_graders($submission);
|
$this->notify_graders($submission);
|
||||||
$this->notify_student_submission_receipt($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 = new stdClass();
|
||||||
$eventdata->modulename = 'assign';
|
$eventdata->modulename = 'assign';
|
||||||
$eventdata->cmid = $this->get_course_module()->id;
|
$eventdata->cmid = $this->get_course_module()->id;
|
||||||
$eventdata->itemid = $submission->id;
|
$eventdata->itemid = $submission->id;
|
||||||
$eventdata->courseid = $this->get_course()->id;
|
$eventdata->courseid = $this->get_course()->id;
|
||||||
$eventdata->userid = $USER->id;
|
$eventdata->userid = $USER->id;
|
||||||
events_trigger('assessable_content_done', $eventdata);
|
events_trigger('assessable_submitted', $eventdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue