function simplenews_admin_settings_newsletter_validate in Simplenews 7.2
Same name and namespace in other branches
- 6.2 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
- 6 simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
- 7 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
@todo
File
- includes/
simplenews.admin.inc, line 1283 - 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."));
}
}