You are here

function getdirections_fields_field_formatter_info in Get Directions 7.3

Implements hook_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

modules/getdirections_fields/getdirections_fields.module, line 59
Provides Field module integration for Getdirections

Code

function getdirections_fields_field_formatter_info() {
  $formatters = array(
    'getdirections_fields_default' => array(
      'label' => t('Getdirections Field'),
      'field types' => array(
        'getdirections_fields',
      ),
      'settings' => getdirections_fields_field_formatter_settings(),
    ),
    'getdirections_fields_link' => array(
      'label' => t('Getdirections Link'),
      'field types' => array(
        'getdirections_fields',
      ),
      'settings' => getdirections_fields_link_formatter_settings(),
    ),
  );
  return $formatters;
}