function civicrm_entity_form_validate in CiviCRM Entity 7
Same name and namespace in other branches
- 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'
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);
}