You are here

public function FlexiformElementNodeAuthor::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

2 calls to FlexiformElementNodeAuthor::formExtractValues()
FlexiformElementNodeAuthor::formSubmit in includes/element/node_author.element.inc
Submit the form element.
FlexiformElementNodeAuthor::formValidate in includes/element/node_author.element.inc
Validate the form element.

File

includes/element/node_author.element.inc, line 91
Contains class for the Node author element.

Class

FlexiformElementNodeAuthor
Class to add the node author field to a form.

Code

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