You are here

function FlexiformElementField::formIsEmpty in Flexiform 7

Overrides FlexiformElement::formIsEmpty().

Overrides FlexiformElement::formIsEmpty

File

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

Class

FlexiformElementField
Class for Field API elements.

Code

function formIsEmpty($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
  $items = $this
    ->formExtractValues($form, $form_state, $entity, $language);
  $items = _field_filter_items($this
    ->getField(), $items);
  if (empty($items)) {
    return TRUE;
  }
}