You are here

public function FlexiformElementEntityProperty::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

3 calls to FlexiformElementEntityProperty::formExtractValues()
FlexiformElementEntityProperty::formSubmit in includes/element/property.element.inc
Submit the form element.
FlexiformElementEntityProperty::formValidate in includes/element/property.element.inc
Validate the form element.
FlexiformElementEntityProperty_date::formExtractValues in includes/element/property/date.property.element.inc
Extract the submitted values for this form element.
1 method overrides FlexiformElementEntityProperty::formExtractValues()
FlexiformElementEntityProperty_date::formExtractValues in includes/element/property/date.property.element.inc
Extract the submitted values for this form element.

File

includes/element/property.element.inc, line 148
Contains class for the entity property elements.

Class

FlexiformElementEntityProperty
Class to add an element for entity properties.

Code

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