1 entity_example.module entity_example_basic_form_validate($form, &$form_state)

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

modules/examples/entity_example/entity_example.module, line 446
Hook implementations for the Entity Example module.

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);
}