You are here

protected function SimpleLdapUserController::blockUser in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 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 76
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;
}