You are here

public function FlexiformElementUserMail::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

1 call to FlexiformElementUserMail::formExtractValues()
FlexiformElementUserMail::formSubmit in includes/element/user_mail.element.inc
Submit the form element.

File

includes/element/user_mail.element.inc, line 59
Contains class for the User mail element.

Class

FlexiformElementUserMail
Class to add the User mail field to a form.

Code

public function formExtractValues($form, &$form_state, $entity) {
  $parents = $form['#parents'];
  $parents[] = $this
    ->getEntityNamespace();
  $parents[] = 'mail';
  $mail = drupal_array_get_nested_value($form_state['values'], $parents);
  return $mail;
}