You are here

function gmap_geo_elements in GMap Addons 7

Same name and namespace in other branches
  1. 6 gmap_geo/gmap_geo.module \gmap_geo_elements()

Implementation of FAPI hook_elements().

File

gmap_geo/gmap_geo.module, line 13
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_elements() {
  return array(
    'gmap_geo_picker' => array(
      '#input' => TRUE,
      '#columns' => array(
        'lat',
        'lon',
        'wkt',
      ),
      '#delta' => 0,
      '#process' => array(
        'gmap_geo_picker_process',
      ),
    ),
  );
}