You are here

function FlexiformElementField::formSubmit in Flexiform 7

Submit callback for this form.

Overrides FlexiformElement::formSubmit

1 call to FlexiformElementField::formSubmit()
FlexiformElementField_entityreference::formSubmit in includes/element/fields/entityreference.inc
Submit callback for this form.
1 method overrides FlexiformElementField::formSubmit()
FlexiformElementField_entityreference::formSubmit in includes/element/fields/entityreference.inc
Submit callback for this form.

File

includes/element/field.element.inc, line 560
Contains FlexiformElementField class.

Class

FlexiformElementField
Class for Field API elements.

Code

function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
  $form_elements = $this
    ->extractFormElements($form);
  field_attach_submit($this
    ->getEntityType(), $entity, $form_elements, $form_state, array(
    'field_name' => $this->field_name,
  ));
}