public function FlexiformElement::formIsEmpty in Flexiform 7
Work out if the submitted value constitutes empty.
1 method overrides FlexiformElement::formIsEmpty()
- FlexiformElementField::formIsEmpty in includes/
element/ field.element.inc - Overrides FlexiformElement::formIsEmpty().
File
- includes/
flexiform.element.inc, line 335 - Controller class for flexiform elements.
Class
- FlexiformElement
- Base class for all FlexiformElements
Code
public function formIsEmpty($form, &$form_state, $entity) {
$values = $this
->formExtractValues($form, $form_state, $entity);
return empty($values);
}