function advuser_admin_account_validate in Advanced User 5.2
Same name and namespace in other branches
- 6.2 advuser.module \advuser_admin_account_validate()
File
- ./
advuser.module, line 280 - 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_id, $form_values) {
$form_values['accounts'] = array_filter($form_values['accounts']);
if (count($form_values['accounts']) == 0) {
form_set_error('', t('No users selected.'));
}
}