function simple_ldap_user_user_insert in Simple LDAP 7.2
Same name and namespace in other branches
- 7 simple_ldap_user/simple_ldap_user.module \simple_ldap_user_user_insert()
Implements hook_user_insert().
Fires after a new account is created.
Parameters
array $edit: The form values submitted by the user.
File
- simple_ldap_user/
simple_ldap_user.module, line 308 - Main simple_ldap_user module file.
Code
function simple_ldap_user_user_insert(&$edit, $account, $category) {
if ($account->uid == 1) {
return;
}
$ldap_user = SimpleLdapUser::singleton($account->name);
if (!$ldap_user->exists) {
module_invoke_all('sync_user_to_ldap', $account);
simple_ldap_user_update_authmap($account, $ldap_user);
}
}