function getlocations_element_map_behavior in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_element_map_behavior()
1 call to getlocations_element_map_behavior()
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;
}