Skip to content

Commit

Permalink
MDL-19925 adding events to upload users scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 9, 2010
1 parent b68e1bc commit e6f74ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/uploaduser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e6f74ba

Please sign in to comment.