function gmap_geo_field_formatter_info in GMap Addons 7
Same name and namespace in other branches
- 6 gmap_geo/gmap_geo.module \gmap_geo_field_formatter_info()
Implementation of hook_field_formatter_info(). Note that the formatters don't actually work for geo_data fields yet, because that field type doesn't (yet) provide its data in WKT.
File
- gmap_geo/
gmap_geo.module, line 141 - Provides a Google maps location picker widget for Geo cck fields. Provides a field formatter for Geo fields that displays point, line, or polygon data on a Google map.
Code
function gmap_geo_field_formatter_info() {
return array(
'gmap_geo' => array(
'label' => t('GMap'),
'field types' => array(
'geo',
'geo_data',
),
'multiple values' => CONTENT_HANDLE_MODULE,
),
'gmap_geo_simplify' => array(
'label' => t('Simplified Polygon on a GMap'),
'field types' => array(
'geo',
'geo_data',
),
'multiple values' => CONTENT_HANDLE_MODULE,
),
);
}