function simplenews_admin_settings_newsletter_validate in Simplenews 6
Same name and namespace in other branches
- 6.2 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
- 7.2 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
- 7 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
File
- ./
simplenews.admin.inc, line 884 - Newsletter admin, subscription admin, simplenews settings
Code
function simplenews_admin_settings_newsletter_validate($form, &$form_state) {
if (!valid_email_address($form_state['values']['simplenews_from_address'])) {
form_set_error($field_name, t("The sender's email address you supplied is not valid."));
}
}