function simplenews_block_form_validate in Simplenews 6.2
Same name and namespace in other branches
- 5 simplenews.module \simplenews_block_form_validate()
- 6 simplenews.module \simplenews_block_form_validate()
- 7.2 includes/simplenews.subscription.inc \simplenews_block_form_validate()
- 7 includes/simplenews.subscription.inc \simplenews_block_form_validate()
1 string reference to 'simplenews_block_form_validate'
- simplenews_block_form in includes/
simplenews.subscription.inc - FAPI BLOCK subscription form.
File
- includes/
simplenews.subscription.inc, line 164 - (Un)subscription and (un)subscription confirmation
Code
function simplenews_block_form_validate($form, &$form_state) {
if (!simplenews_valid_email_address($form_state['values']['mail'])) {
form_set_error('mail', t("The email address you supplied is not valid."));
}
}