You are here

function _webform_edit_email_validate in Webform 5.2

Same name and namespace in other branches
  1. 6.3 components/email.inc \_webform_edit_email_validate()
  2. 6.2 components/email.inc \_webform_edit_email_validate()
  3. 7.4 components/email.inc \_webform_edit_email_validate()
  4. 7.3 components/email.inc \_webform_edit_email_validate()

Validation function for the email edit form.

File

components/email.inc, line 89
Webform module email component.

Code

function _webform_edit_email_validate($element) {
  if ($element['#value']) {
    form_set_value(array(
      '#parents' => array(
        'value',
      ),
    ), '%useremail');
  }
}