public function FlexiformElementEntityProperty::formSubmit in Flexiform 7
Submit the form element.
Overrides FlexiformElement::formSubmit
File
- includes/
element/ property.element.inc, line 140 - Contains class for the entity property elements.
Class
- FlexiformElementEntityProperty
- Class to add an element for entity properties.
Code
public function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
$value = $this
->formExtractValues($form, $form_state, $entity);
$this
->wrapper($entity)
->get($this->property)
->set($value);
}