You are here

function mass_password_change_validate_password in Mass Password Change 7

Password validation.

1 string reference to 'mass_password_change_validate_password'
mass_password_change_form_user_admin_account_alter in ./mass_password_change.module
Implements hook_form_FORM_ID_alter().

File

./mass_password_change.module, line 76
Mass Password Change

Code

function mass_password_change_validate_password(&$form, &$form_state) {
  if ($form_state['values']['operation'] == 'mass_password_change') {
    if (empty($form_state['values']['mass_password_change_password'])) {
      form_set_error('mass_password_change_password', t('Password is required.'));
    }
  }
}