You are here

public function FlexiformElementNodeTitle::formSubmit in Flexiform 7

Submit the form element.

Overrides FlexiformElement::formSubmit

File

includes/element/node_title.element.inc, line 51
Contains class for the Node title element.

Class

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

Code

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