You are here

function geolocation_field_info in Geolocation Field 7

Same name and namespace in other branches
  1. 6 geolocation.module \geolocation_field_info()

Implements hook_field_info().

1 call to geolocation_field_info()
geolocation_get_geolocation_fields in ./geolocation.install

File

./geolocation.module, line 11
A geolocation field using the Field API.

Code

function geolocation_field_info() {
  return array(
    'geolocation_latlng' => array(
      'label' => t('Geolocation'),
      'description' => t('Geolocation input.'),
      'default_widget' => 'geolocation_latlng',
      'default_formatter' => 'geolocation_text',
      'property_type' => 'geolocation',
      'property_callbacks' => array(
        'geolocation_property_info_callback',
      ),
    ),
  );
}