function gm3_field_field_info in Google Maps API V3 7
Implementation of hook_field_info().
File
- gm3_field/
gm3_field.module, line 75
Code
function gm3_field_field_info() {
$options = array(
'gm3_point' => 'Point',
'gm3_polygon' => 'Polygon',
'gm3_polyline' => 'Polyline',
'gm3_rectangle' => 'Rectangle',
);
drupal_alter('gm3_combination_field_options', $options);
return array(
'gm3_point' => array(
'label' => t('Geo: Point'),
'description' => t('This field stores latitude/longitude pairs.'),
'default_widget' => 'gm3_point_gm3',
'default_formatter' => 'gm3_entity_map',
),
'gm3_polygon' => array(
'label' => t('Geo: Polygon'),
'description' => t('This field stores geographical polygons/areas.'),
'default_widget' => 'gm3_polygon_gm3',
'default_formatter' => 'gm3_entity_map',
),
'gm3_polyline' => array(
'label' => t('Geo: Line'),
'description' => t('This field stores geographical lines.'),
'default_widget' => 'gm3_polyline_gm3',
'default_formatter' => 'gm3_entity_map',
),
'gm3_rectangle' => array(
'label' => t('Geo: Rectangle'),
'description' => t('This field stores a rectangle.'),
'default_widget' => 'gm3_rectangle_gm3',
'default_formatter' => 'gm3_entity_map',
),
'gm3_combination' => array(
'label' => t('Geo: Super-combo'),
'description' => t('Allows for the storage of any geographical data. Including points, lines, areas, lists of regions, and addresses'),
'settings' => $options,
'default_widget' => 'gm3_combination_gm3',
'default_formatter' => 'gm3_entity_map',
),
);
}