You are here

function process_gmap_markerchooser in GMap Module 6

Same name and namespace in other branches
  1. 5 gmap.module \process_gmap_markerchooser()
  2. 6.2 gmap.module \process_gmap_markerchooser()
  3. 7.2 gmap.module \process_gmap_markerchooser()
  4. 7 gmap.module \process_gmap_markerchooser()

Marker chooser #process function.

1 string reference to 'process_gmap_markerchooser'
gmap_elements in ./gmap.module
Implementation of hook_elements().

File

./gmap.module, line 795
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;
}