Validation handler for entity_example_basic_add_form form.

We pass things straight through to the Field API to handle validation of the attached fields.

Related topics

File

entity_example/entity_example.module, line 451
Implements the basic functionality required to create and display an entity.

Code

function entity_example_basic_form_validate($form, &$form_state) {
  field_attach_form_validate('entity_example_basic', $form_state['values']['basic_entity'], $form, $form_state);
}