You are here

function simplenews_admin_settings_newsletter_validate in Simplenews 6.2

Same name and namespace in other branches
  1. 6 simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
  2. 7.2 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()
  3. 7 includes/simplenews.admin.inc \simplenews_admin_settings_newsletter_validate()

File

includes/simplenews.admin.inc, line 999
Newsletter admin, subscription admin, simplenews settings

Code

function simplenews_admin_settings_newsletter_validate($form, &$form_state) {
  if (!simplenews_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."));
  }
}