You are here

function office_hours_widget_info in Office Hours 6.2

Same name and namespace in other branches
  1. 5 office_hours.module \office_hours_widget_info()
  2. 6 office_hours.module \office_hours_widget_info()

Implementation of hook_widget_info().

File

./office_hours.module, line 231
Creates a field and widget for inserting working or office hours per day

Code

function office_hours_widget_info() {
  return array(
    'office_hours' => array(
      'label' => t('Office Hours'),
      'field types' => array(
        'office_hours',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}