You are here

function FlexiformElementField::extractFormElements in Flexiform 7

Extract the form element from $form and give it the correct key.

4 calls to FlexiformElementField::extractFormElements()
FlexiformElementField::formExtractValues in includes/element/field.element.inc
Overrides FlexiformElement::formExtractValues().
FlexiformElementField::formSubmit in includes/element/field.element.inc
Submit callback for this form.
FlexiformElementField::formValidate in includes/element/field.element.inc
Validate this element.
FlexiformElementField_entityreference::formSubmit in includes/element/fields/entityreference.inc
Submit callback for this form.

File

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

Class

FlexiformElementField
Class for Field API elements.

Code

function extractFormElements($form) {
  $form_element = $form[$this
    ->getElementNamespace()];
  return array(
    '#parents' => array_merge($form['#parents'], array(
      $this
        ->getEntityNamespace(),
    )),
    $this->field_name => $form_element,
  );
}