You are here

function office_hours_field_formatter_info in Office Hours 5

Same name and namespace in other branches
  1. 6.2 office_hours.module \office_hours_field_formatter_info()
  2. 6 office_hours.module \office_hours_field_formatter_info()
  3. 7 includes/office_hours.formatter.inc \office_hours_field_formatter_info()

Declare information about a formatter.

Return value

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

  • "label": The human-readable label for the formatter.
  • "field types": An array of field type names that can be displayed using this formatter.

File

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

Code

function office_hours_field_formatter_info() {
  return array(
    'default' => array(
      'label' => 'default',
      'field types' => array(
        'office_hours',
      ),
    ),
  );
}