You are here

public function FlexiformElementNodeSticky::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

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

File

includes/element/node_sticky.element.inc, line 47
Contains class for the Node sticky element.

Class

FlexiformElementNodeSticky
Class to add the node sticky field to a form.

Code

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