public function UserSingle7::block

8.0.x UserSingle7.php public UserSingle7::block()
7.x UserSingle7.php public UserSingle7::block()
master UserSingle7.php public UserSingle7::block()

Block a user from login.

Overrides UserSingleBase::block

File

lib/Drush/User/UserSingle7.php, line 7

Namespace

Drush\User

Class

UserSingle7

Code

public function block() {
  user_user_operations_block(array($this->account->uid));
}