function process_gmap_markerchooser in GMap Module 7.2
Same name and namespace in other branches
- 5 gmap.module \process_gmap_markerchooser()
- 6.2 gmap.module \process_gmap_markerchooser()
- 6 gmap.module \process_gmap_markerchooser()
- 7 gmap.module \process_gmap_markerchooser()
Marker chooser #process function.
@todo move this to GmapElement class
1 string reference to 'process_gmap_markerchooser'
- gmap_element_info in ./
gmap.module - Implements hook_element_info().
File
- ./
gmap.module, line 901 - GMap -- Routines to use the Google Maps API in Drupal.
Code
function process_gmap_markerchooser($element) {
$element['#type'] = 'select';
$options = gmap_get_marker_titles();
if (!isset($element['#required']) || !$element['#required']) {
$options = array(
'' => t('Default'),
) + $options;
}
$element['#options'] = $options;
$element += element_info('select');
return $element;
}