function user_user_import_after_save in User Import 8
Same name and namespace in other branches
- 5 supported/user.inc \user_user_import_after_save()
- 6.4 supported/user.inc \user_user_import_after_save()
- 6.2 supported/user.inc \user_user_import_after_save()
- 7.3 supported/user.inc \user_user_import_after_save()
- 7 supported/user.inc \user_user_import_after_save()
- 7.2 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;
}