You are here

function user_admin_account_validate in Drupal 5

Same name and namespace in other branches
  1. 6 modules/user/user.admin.inc \user_admin_account_validate()
  2. 7 modules/user/user.admin.inc \user_admin_account_validate()

File

modules/user/user.module, line 2167
Enables the user registration and login system.

Code

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