function _webform_edit_email_validate in Webform 7.4
Same name and namespace in other branches
- 5.2 components/email.inc \_webform_edit_email_validate()
- 6.3 components/email.inc \_webform_edit_email_validate()
- 6.2 components/email.inc \_webform_edit_email_validate()
- 7.3 components/email.inc \_webform_edit_email_validate()
Element validation function for the email edit form.
1 string reference to '_webform_edit_email_validate'
- _webform_edit_email in components/
email.inc - Implements _webform_edit_component().
File
- components/
email.inc, line 135 - Webform module email component.
Code
function _webform_edit_email_validate($element, &$form_state) {
if ($form_state['values']['user_email']) {
$form_state['values']['value'] = '[current-user:mail]';
}
}