You are here

public function FlexiformElementField::configureFormValidate in Flexiform 7

Overrides FlexiformElement::configureFormValidate().

Overrides FlexiformElement::configureFormValidate

File

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

Class

FlexiformElementField
Class for Field API elements.

Code

public function configureFormValidate($form, &$form_state, $flexiform) {
  if ($this
    ->checkWidgetBehavior() && $form_state['values']['instance']['use_default_value_function']) {
    unset($form['instance']['default_value_widget']);
  }
  field_ui_field_edit_form_validate($form, $form_state);
}