You are here

function getlocations_map_field_formatter_info in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_map/getlocations_map.module \getlocations_map_field_formatter_info()

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/getlocations_map/getlocations_map.module, line 65
getlocations_map.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_map_field_formatter_info() {
  $formatters = array(
    'getlocations_map_default' => array(
      'label' => t('Getlocations Map Field'),
      'field types' => array(
        'getlocations_map',
      ),
      'settings' => getlocations_map_map_formatter_defaults(),
    ),
    'getlocations_map_link' => array(
      'label' => t('Getlocations Link Field'),
      'field types' => array(
        'getlocations_map',
      ),
      'settings' => getlocations_map_link_formatter_defaults(),
    ),
  );
  return $formatters;
}