From: Petr Skoda Date: Sat, 9 Oct 2010 22:53:50 +0000 (+0000) Subject: MDL-19925 adding events to upload users scripts X-Git-Tag: v2.0.0-rc2~620 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=e6f74ba355f89e71926e22250523cdcab2a88b10 MDL-19925 adding events to upload users scripts --- diff --git a/admin/uploaduser.php b/admin/uploaduser.php index 84ce3ab4fe6..0c7bdf24130 100755 --- a/admin/uploaduser.php +++ b/admin/uploaduser.php @@ -499,6 +499,8 @@ if ($formdata = $mform->is_cancelled()) { $usersupdated++; // save custom profile fields data from csv file profile_save_data($existinguser); + + events_trigger('user_updated', $existinguser); } if ($bulk == 2 or $bulk == 3) { @@ -564,6 +566,8 @@ if ($formdata = $mform->is_cancelled()) { // make sure user context exists get_context_instance(CONTEXT_USER, $user->id); + events_trigger('user_created', $user); + if ($bulk == 1 or $bulk == 3) { if (!in_array($user->id, $SESSION->bulk_users)) { $SESSION->bulk_users[] = $user->id;