You are here

function multiple_email_admin_settings_validate in Multiple E-mail Addresses 5

Same name and namespace in other branches
  1. 6 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 309
multiple_email module file

Code

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