You are here

function _webform_edit_email_validate in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/email.inc \_webform_edit_email_validate()
  2. 6.3 components/email.inc \_webform_edit_email_validate()
  3. 6.2 components/email.inc \_webform_edit_email_validate()
  4. 7.4 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 104
Webform module email component.

Code

function _webform_edit_email_validate($element, &$form_state) {
  if ($form_state['values']['user_email']) {
    $form_state['values']['value'] = '%useremail';
  }
}