You are here

public function FlexiformElementUserName::formSubmit in Flexiform 7

Submit the form element.

Overrides FlexiformElement::formSubmit

File

includes/element/user_name.element.inc, line 65
Contains class for the User name element.

Class

FlexiformElementUserName
Class to add the node title field to a form.

Code

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