function user_admin_account_validate in Drupal 7
Same name and namespace in other branches
- 5 modules/user/user.module \user_admin_account_validate()
- 6 modules/user/user.admin.inc \user_admin_account_validate()
File
- modules/
user/ user.admin.inc, line 267 - 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.'));
}
}