function signup_validate_anon_mail in Signup 6.2
Same name and namespace in other branches
- 6 includes/signup_edit_form.inc \signup_validate_anon_mail()
- 7 includes/signup_edit_form.inc \signup_validate_anon_mail()
Validation callback when editing the anonymous email for an existing signup.
1 string reference to 'signup_validate_anon_mail'
- signup_edit_form in includes/
signup_edit_form.inc - Build the form for editing existing signups.
File
- includes/
signup_edit_form.inc, line 172 - Code for the form to edit existing signups.
Code
function signup_validate_anon_mail($form, &$form_state) {
$mail = $form_state['values']['signup_anon_mail'];
if (!valid_email_address($mail)) {
form_set_error('signup_anon_mail', t('The e-mail address %mail is not valid.', array(
'%mail' => $mail,
)));
}
}