function drush_user_block

8.0.x user.drush.inc drush_user_block($users = '')
6.x user.drush.inc drush_user_block($users = '')
7.x user.drush.inc drush_user_block($users = '')
4.x user.drush.inc drush_user_block($users = '')
5.x user.drush.inc drush_user_block($users = '')
master user.drush.inc drush_user_block($users = '')

Block the specified user(s).

File

commands/user/user.drush.inc, line 262
Drush User Management commands

Code

function drush_user_block($users = '') {
  $userlist = new UserList($users);
  $userlist->each('block');
  drush_log(dt('Blocked user(s): !users', array('!users' => $userlist->names())), LogLevel::SUCCESS);
}