function gmap_elements in GMap Module 5
Same name and namespace in other branches
- 6.2 gmap.module \gmap_elements()
- 6 gmap.module \gmap_elements()
Implementation of hook_elements().
File
- ./
gmap.module, line 524 - GMap -- Routines to use the Google Maps API in Drupal.
Code
function gmap_elements() {
return array(
'gmap' => array(
'#input' => FALSE,
// This isn't a *form* input!!
'#settings' => array_merge(gmap_defaults(), array(
'points' => array(),
'pointsOverlays' => array(),
'lines' => array(),
)),
),
'gmap_macrotext' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textarea',
'#theme' => 'gmap_macrotext',
'#process' => array(
'process_gmap_control' => array(),
),
),
'gmap_overlay_edit' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_overlay_edit' => array(),
),
),
'gmap_style' => array(
'#input' => TRUE,
'#tree' => TRUE,
'#gmap_style_type' => 'poly',
'#process' => array(
'process_gmap_style' => array(),
),
),
'gmap_address' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_address' => array(),
),
),
'gmap_align' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_align' => array(),
),
),
'gmap_latitude' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control' => array(),
),
),
'gmap_longitude' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control' => array(),
),
),
'gmap_latlon' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control' => array(),
),
),
'gmap_markerchooser' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_markerchooser' => array(),
),
),
'gmap_dimension' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control' => array(),
),
'#validate' => array(
'gmap_dimension_validate' => array(),
),
),
);
}