You are here

function advuser_admin_users_validate in Advanced User 5

File

./advuser.module, line 573

Code

function advuser_admin_users_validate($form_id, $edit) {
  $op = $form_values['op'];
  if ($op == 'Update') {
    $edit['users'] = array_diff($edit['users'], array(
      0,
    ));
    if (count($edit['users']) == 0) {
      form_set_error('', t('Please select some items to perform the update on.'));
    }
  }
}