function hook_simple_ldap_user_to_drupal_alter in Simple LDAP 7.2
Same name and namespace in other branches
- 7 simple_ldap_user/simple_ldap_user.api.php \hook_simple_ldap_user_to_drupal_alter()
Alter user data before saving to Drupal.
This hook is called when simple_ldap_user is doing an account synchronization from LDAP to Drupal, immediately before user_save() is called.
Parameters
array $edit: Array of changes to apply to the Drupal user by user_save().
StdClass $drupal_user: The Drupal user object to be saved.
SimpleLdapUser $ldap_user: The SimpleLdapUser object that matches the Drupal user object.
1 invocation of hook_simple_ldap_user_to_drupal_alter()
- simple_ldap_user_generate_edit_ldap_to_drupal in simple_ldap_user/
simple_ldap_user.module
File
- simple_ldap_user/
simple_ldap_user.api.php, line 77 - Describe hooks provided by the Simple LDAP User module.
Code
function hook_simple_ldap_user_to_drupal_alter($edit, $drupal_user, $ldap_user) {
}