protected function SimpleLdapUserController::blockUser in Simple LDAP 7
Same name and namespace in other branches
- 7.2 simple_ldap_user/SimpleLdapUserController.class.php \SimpleLdapUserController::blockUser()
Block a user, setting status to 0. This will store the current status as stored in the database into a separate value, for use in user hooks.
1 call to SimpleLdapUserController::blockUser()
- SimpleLdapUserController::load in simple_ldap_user/
SimpleLdapUserController.class.php - Verifies that the user exists in the LDAP directory.
File
- simple_ldap_user/
SimpleLdapUserController.class.php, line 66 - SimpleLdapUserController class.
Class
- SimpleLdapUserController
- Controller class for LDAP users.
Code
protected function blockUser(stdClass $account) {
$account->simple_ldap_user_drupal_status = $account->status;
$account->simple_ldap_user_ldap_status = 0;
$account->status = 0;
}