You are here

function office_hours_field_widget_info in Office Hours 7

Implements hook_field_widget_info().

File

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

Code

function office_hours_field_widget_info() {
  return array(
    'office_hours' => array(
      'label' => t('Office hours (week)'),
      'description' => t("A 7-day widget"),
      'field types' => array(
        'office_hours',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
    'office_hours_dynamic_widget' => array(
      'label' => t('Office hours (list)'),
      'description' => t("An 'add another' widget"),
      'field types' => array(
        'office_hours',
      ),
    ),
  );
}