You are here

public function FlexiformElementNodePromote::formSubmit in Flexiform 7

Submit the form element.

Overrides FlexiformElement::formSubmit

File

includes/element/node_promote.element.inc, line 40
Contains class for the Node promote element.

Class

FlexiformElementNodePromote
Class to add the node promote field to a form.

Code

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