You are here

function simplenews_block_form_validate in Simplenews 6

Same name and namespace in other branches
  1. 5 simplenews.module \simplenews_block_form_validate()
  2. 6.2 includes/simplenews.subscription.inc \simplenews_block_form_validate()
  3. 7.2 includes/simplenews.subscription.inc \simplenews_block_form_validate()
  4. 7 includes/simplenews.subscription.inc \simplenews_block_form_validate()
1 string reference to 'simplenews_block_form_validate'
simplenews_block_form in ./simplenews.module
Newsletter (un)subscription form for authenticated and anonymous users.

File

./simplenews.module, line 1349
Simplnews node handling, sent email, newsletter block and general hooks

Code

function simplenews_block_form_validate($form, &$form_state) {
  if (!valid_email_address($form_state['values']['mail'])) {
    form_set_error('mail', t("The email address you supplied is not valid."));
  }
}