You are here

function office_hours_field_widget_error in Office Hours 7

Implements hook_field_widget_error().

This is necessary to show the errors thrown in hook_field_validate().

File

includes/office_hours.widget.inc, line 132
Implements the office_hours widget.

Code

function office_hours_field_widget_error($element, $error, $form, &$form_state) {
  form_error($element, $error['message']);
}