fix for MDL-9983, trigger certain events out of the core to modules

This commit is contained in:
toyomoyo 2007-07-10 02:33:38 +00:00
parent 2f338ab5b0
commit a160cf0b17
4 changed files with 12 additions and 10 deletions

View file

@ -68,6 +68,12 @@
$strpasswordchanged = get_string('passwordchanged');
// MDL-9983
$eventdata = new object();
$eventdata -> user = $USER;
$eventdata -> newpassword = $data -> newpassword1;
events_trigger('password_changed', $eventdata);
add_to_log($course->id, 'user', 'change password', "view.php?id=$USER->id&course=$course->id", "$USER->id");
$fullname = fullname($USER, true);