function office_hours_widget_info in Office Hours 5
Same name and namespace in other branches
- 6.2 office_hours.module \office_hours_widget_info()
- 6 office_hours.module \office_hours_widget_info()
Declare information about a widget.
Return value
An array keyed by widget name. Each element of the array is an associative array with these keys and values:
- "label": The human-readable label for the widget.
- "field types": An array of field type names that can be edited using this widget.
File
- ./
office_hours.module, line 324 - Creates a field and widget for inserting working or office hours per day
Code
function office_hours_widget_info() {
return array(
'default' => array(
'label' => t('Office Hours'),
'field types' => array(
'office_hours',
),
),
);
}