You are here

public function EntityInlineEntityFormController::entityFormValidate in Inline Entity Form 7

Validates the entity form.

Parameters

$entity_form: The entity form.

$form_state: The form state of the parent form.

2 methods override EntityInlineEntityFormController::entityFormValidate()
CommerceLineItemInlineEntityFormController::entityFormValidate in includes/commerce_line_item.inline_entity_form.inc
Overrides EntityInlineEntityFormController::entityFormValidate().
CommerceProductInlineEntityFormController::entityFormValidate in includes/commerce_product.inline_entity_form.inc
Overrides EntityInlineEntityFormController::entityFormValidate().

File

includes/entity.inline_entity_form.inc, line 286
Defines the base inline entity form controller.

Class

EntityInlineEntityFormController
@file Defines the base inline entity form controller.

Code

public function entityFormValidate($entity_form, &$form_state) {
  $info = entity_get_info($this->entityType);
  $entity = $entity_form['#entity'];
  if (!empty($info['fieldable'])) {
    field_attach_form_validate($this->entityType, $entity, $entity_form, $form_state);
  }
}