function simple_gmap_field_formatter_info in Simple Google Maps 7
Implements hook_field_formatter_info().
Defines a formatter for maps and map links.
File
- ./
simple_gmap.module, line 17 - Simple Google Maps module.
Code
function simple_gmap_field_formatter_info() {
$formatters = array();
$formatters['simple_gmap'] = array(
'label' => t('Google Map from one-line address'),
'field types' => array(
'text',
'computed',
),
'settings' => array(
'include_map' => 1,
'include_static_map' => 0,
'include_link' => 0,
'include_text' => 0,
'iframe_height' => 200,
'iframe_width' => 200,
'static_scale' => 1,
'zoom_level' => 14,
'link_text' => t('View larger map'),
'map_type' => 'm',
'langcode' => 'en',
'apikey' => '',
),
);
return $formatters;
}