You are here

function domain_entity_field_widget_error in Domain Access Entity 7

Implements hook_field_widget_error().

File

./domain_entity.module, line 516
Defines field (e.g. domain_entity) for entities, and access query alter.

Code

function domain_entity_field_widget_error($element, $error, $form, &$form_state) {
  if ($error['error'] == 'domain_entity') {
    form_error($element['domain_id'], $error['message']);
  }
}