You are here

function geolocation_field_formatter_info in Geolocation Field 6

Same name and namespace in other branches
  1. 7 geolocation.module \geolocation_field_formatter_info()

Implementation of hook_field_formatter_info().

All fields should have a 'default' formatter. Any number of other formatters can be defined as well. It's nice for there always to be a 'plain' option for the raw value, but that is not required.

File

./geolocation.module, line 214

Code

function geolocation_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('DEFAULT: Simple text-based formatter'),
      'field types' => array(
        'geolocation_latlng',
      ),
    ),
    'latitude' => array(
      'label' => t('Latitude text-based formatter'),
      'field types' => array(
        'geolocation_latlng',
      ),
    ),
    'longitude' => array(
      'label' => t('Longitude text-based formatter'),
      'field types' => array(
        'geolocation_latlng',
      ),
    ),
  );
}