You are here

public function FlexiformElementUserMail::formSubmit in Flexiform 7

Submit the form element.

Overrides FlexiformElement::formSubmit

File

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

Class

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

Code

public function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
  $mail = $this
    ->formExtractValues($form, $form_state, $entity);
  $entity->mail = $mail;
}