You are here

function getlocations_element_map_behavior in Get Locations 6

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_element_map_behavior()
1 call to getlocations_element_map_behavior()
getlocations_map_display_options_form in ./getlocations.module

File

./getlocations.module, line 1443
Displays locations on a map. for Drupal 6 using version 3 googlemaps API

Code

function getlocations_element_map_behavior($type, $default) {

  // scale  overview overview_opened scrollwheel
  if ($type == 'scale') {
    $title = t('Scale');
    $description = t('Show scale');
  }
  elseif ($type == 'overview') {
    $title = t('Overview map');
    $description = t('Show overview map');
  }
  elseif ($type == 'overview_opened') {
    $title = t('Overview map state');
    $description = t('Show overview map as open by default.');
  }
  elseif ($type == 'scrollwheel') {
    $title = t('Scrollwheel');
    $description = t('Enable scrollwheel zooming');
  }
  if ($title) {
    $element = getlocations_element_map_checkbox($title, $default, $description);
    return $element;
  }
  return FALSE;
}