function user_admin_account_validate

7.x user.admin.inc user_admin_account_validate($form, &$form_state)
6.x user.admin.inc user_admin_account_validate($form, &$form_state)

File

drupal-6.x/modules/user/user.admin.inc, line 241
Admin page callback file for the user module.

Code

function user_admin_account_validate($form, &$form_state) {
  $form_state['values']['accounts'] = array_filter($form_state['values']['accounts']);
  if (count($form_state['values']['accounts']) == 0) {
    form_set_error('', t('No users selected.'));
  }
}