Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-19925 adding events to upload users scripts

  • Loading branch information...
commit e6f74ba355f89e71926e22250523cdcab2a88b10 1 parent b68e1bc
@skodak skodak authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.