function gmap_elements in GMap Module 6
Same name and namespace in other branches
- 5 gmap.module \gmap_elements()
- 6.2 gmap.module \gmap_elements()
Implementation of hook_elements().
File
- ./
gmap.module, line 553 - 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',
),
),
'gmap_overlay_edit' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_overlay_edit',
),
),
'gmap_style' => array(
'#input' => TRUE,
'#tree' => TRUE,
'#gmap_style_type' => 'poly',
'#process' => array(
'process_gmap_style',
),
),
'gmap_address' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_address',
),
),
'gmap_align' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_align',
),
),
'gmap_latitude' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control',
),
),
'gmap_longitude' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control',
),
),
'gmap_latlon' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control',
),
),
'gmap_markerchooser' => array(
'#input' => TRUE,
'#process' => array(
'process_gmap_markerchooser',
),
),
'gmap_dimension' => array(
'#input' => TRUE,
'#gmap_newtype' => 'textfield',
'#process' => array(
'process_gmap_control',
),
'#element_validate' => array(
'gmap_dimension_validate',
),
),
);
}