You are here

public function FlexiformElementNodeStatus::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

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

File

includes/element/node_status.element.inc, line 47
Contains class for the Node status element.

Class

FlexiformElementNodeStatus
Class to add the node status field to a form.

Code

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