You are here

function _webform_edit_email_validate in Webform 6.2

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. 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.

1 string reference to '_webform_edit_email_validate'
_webform_edit_email in components/email.inc
Create a set of form items to be displayed on the form for editing this component. Use care naming the form items, as this correlates directly to the database schema. The component "Name" and "Description" fields are added to every…

File

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

Code

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