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 232
Drush User Management commands

Code

function drush_user_block($users = '') {
  $uids = _drush_user_get_users_from_options_and_arguments($users);
  if (!empty($uids)) {
    drush_op('user_user_operations_block', $uids);
  }
  else {
    return drush_set_error("Could not find any valid uids!");
  }
}