function multiple_email_admin_settings_validate in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 5 multiple_email.module \multiple_email_admin_settings_validate()
- 6 multiple_email.module \multiple_email_admin_settings_validate()
- 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 417 - 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!');
}
}