user_admin_account_validate

Versions
5
user_admin_account_validate($form_id, $form_values)
6 – 7
user_admin_account_validate($form, &$form_state)

Code

modules/user/user.module, line 2167

<?php
function user_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.'));
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.