You are here

function user_user_import_after_save in User Import 7.2

Same name and namespace in other branches
  1. 8 supported/user.inc \user_user_import_after_save()
  2. 5 supported/user.inc \user_user_import_after_save()
  3. 6.4 supported/user.inc \user_user_import_after_save()
  4. 6.2 supported/user.inc \user_user_import_after_save()
  5. 7.3 supported/user.inc \user_user_import_after_save()
  6. 7 supported/user.inc \user_user_import_after_save()

Implementation of hook_user_import_after_save().

File

supported/user.inc, line 179

Code

function user_user_import_after_save($settings, $account, $password, $fields, $updated, $update_setting_per_module) {

  /**
   * @todo change hook_user_import_after_save() so that all changes to data are returned and saved in one hit
   */
  $roles = isset($fields['user']['roles']) ? $fields['user']['roles'] : array();
  user_user_import_after_save_role($account, $settings['roles_new'], $account->roles, $roles);
  return;
}