function office_hours_field_info in Office Hours 7
Same name and namespace in other branches
- 5 office_hours.module \office_hours_field_info()
- 6.2 office_hours.module \office_hours_field_info()
- 6 office_hours.module \office_hours_field_info()
Implements hook_field_info().
File
- includes/
office_hours.field.inc, line 11 - Implements the office_hours Field.
Code
function office_hours_field_info() {
return array(
'office_hours' => array(
'label' => t('Office hours'),
'description' => t("This field stores weekly 'office hours' or 'opening hours' in the database."),
'settings' => array(
'comment' => 0,
'date_first_day' => 0,
'hoursformat' => 0,
'granularity' => 60,
'limitstart' => '',
'limitend' => '',
'valhrs' => 0,
// Mar-2013: Conversion from (old) checkbox "Add more hours" to (new) selectlist 'cardinality'.
// @todo for 'multiple blocks per day': create hook_update_N().
// 'addhrs' => 1,
'cardinality' => 2,
),
'default_widget' => 'office_hours',
'default_formatter' => 'office_hours',
// Integrate with the Entity Metadata module.
'property_type' => 'office_hours',
'property_callbacks' => array(
'office_hours_property_info_callback',
),
),
);
}