abuse_admin_settings_validate($form_id, $form_values)
abuse/abuse.module, line 231
Abuse module main configuration page form validation
<?php
function abuse_admin_settings_validate($form_id, $form_values) {
if (!is_numeric($form_values['abuse_threshold'])) {
form_set_error('abuse_threshold', t('You must enter a valid number for the "Abuse reporting threshold" setting.'));
}
if (!empty($form_values['abuse_warn_bcc']) && !valid_email_address($form_values['abuse_warn_bcc'])) {
form_set_error('abuse_warn_bcc', t('You must enter a valid email address for the "Abuse email warning BCC address" setting.'));
}
}
?>