assignment MDL-24710 added component and name properties to Event object required...
authorAparup Banerjee <nebgor@gmail.com>
Tue, 19 Oct 2010 07:28:42 +0000 (07:28 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Tue, 19 Oct 2010 07:28:42 +0000 (07:28 +0000)
mod/assignment/lib.php

index 88914d9..31461e1 100644 (file)
@@ -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);
             }
         }