You are here

function civicrm_entity_form_validate in CiviCRM Entity 7

Same name and namespace in other branches
  1. 7.2 civicrm_entity.default_form.inc \civicrm_entity_form_validate()

Form API validate callback for the entity form

1 string reference to 'civicrm_entity_form_validate'
civicrm_entity_form in ./civicrm_entity.module

File

./civicrm_entity.module, line 555
Implement CiviCRM entities as a Drupal Entity.

Code

function civicrm_entity_form_validate(&$form, &$form_state) {
  $entity = $form_state['entity'];
  $entity_type = $form_state['entity_type'];

  // Notify field widgets to validate their data.
  field_attach_form_validate($entity_type, $entity, $form, $form_state);
}