You are here

function multiple_email_admin_settings_validate in Multiple E-mail Addresses 6

Same name and namespace in other branches
  1. 5 multiple_email.module \multiple_email_admin_settings_validate()
  2. 7 multiple_email.module \multiple_email_admin_settings_validate()
  3. 2.x multiple_email.module \multiple_email_admin_settings_validate()

Validation for multiple_email_admin_settings.

Parameters

string $form_id:

array $form_values:

File

./multiple_email.module, line 368
multiple_email module file

Code

function multiple_email_admin_settings_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['multiple_email_confirm_attempts'])) {
    form_set_error('multiple_email_confirm_attempts', 'Confirm attempts must be an number!');
  }
  if (!is_numeric($form_state['values']['multiple_email_confirm_deadline'])) {
    form_set_error('multiple_email_confirm_deadline', 'Confirm Days must be an number!');
  }
}