Browse files

MDL-19925 adding events to upload users scripts

  • Loading branch information...
1 parent b68e1bc commit e6f74ba355f89e71926e22250523cdcab2a88b10 @skodak skodak committed Oct 9, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 admin/uploaduser.php
View
4 admin/uploaduser.php
@@ -499,6 +499,8 @@
$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 @@
// 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;

0 comments on commit e6f74ba

Please sign in to comment.