function hook_simple_ldap_user_should_delete_user in Simple LDAP 7.2
SimpleLDAP will call this during user_load() after fetching the entry from the LDAP server. If any module returns TRUE, the user will be deleted and user_load() will ultimately return NULL.
Parameters
StdClass $drupal_user: The Drupal user object that matches the SimpleLdapUser object.
SimpleLdapUser $ldap_user: The SimpleLdapUser object to be saved.
1 invocation of hook_simple_ldap_user_should_delete_user()
- SimpleLdapUserController::load in simple_ldap_user/
SimpleLdapUserController.class.php - Verifies that the user exists in the LDAP directory.
File
- simple_ldap_user/
simple_ldap_user.api.php, line 104 - Describe hooks provided by the Simple LDAP User module.
Code
function hook_simple_ldap_user_should_delete_user($account, $ldap_user) {
return $ldap_user->status[0] == 'deleted';
}