You are here

function office_hours_field_info in Office Hours 6.2

Same name and namespace in other branches
  1. 5 office_hours.module \office_hours_field_info()
  2. 6 office_hours.module \office_hours_field_info()
  3. 7 includes/office_hours.field.inc \office_hours_field_info()

Implementation of hook_field_info().

Return value

An array keyed by field type name. Each element of the array is an associative array with these keys and values:

  • "label": The human-readable label for the field type.

File

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

Code

function office_hours_field_info() {
  return array(
    'office_hours' => array(
      'label' => 'Office Hours',
      'description' => t('Store office or opening hours in the database.'),
      'callbacks' => array(
        'tables' => CONTENT_CALLBACK_DEFAULT,
        'arguments' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}