You are here

function advuser_admin_account_validate in Advanced User 6.2

Same name and namespace in other branches
  1. 5.2 advuser.module \advuser_admin_account_validate()

File

./advuser.module, line 311
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function advuser_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.'));
  }
}