diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 88914d92315..31461e13cf7 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -1743,6 +1743,10 @@ class assignment_base { $eventdata->fullmessageformat = FORMAT_PLAIN; $eventdata->fullmessagehtml = $posthtml; $eventdata->smallmessage = ''; + + $eventdata->name = 'assignment_submitted'; + $eventdata->component = 'mod_assignment'; + message_send($eventdata); } }