function getlocations_element_map_baselayers in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_element_map_baselayers()
- 6 getlocations.module \getlocations_element_map_baselayers()
- 7.2 getlocations.module \getlocations_element_map_baselayers()
Function
Return value
Returns form element
1 call to getlocations_element_map_baselayers()
- getlocations_map_display_options_form in ./
getlocations.module - Function
File
- ./
getlocations.module, line 3526 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_element_map_baselayers($view, $default) {
// Map Satellite Hybrid Physical
$title = FALSE;
$providers = getlocations_get_map_providers();
if (isset($providers[$view])) {
$title = $providers[$view]['title'];
$description = $providers[$view]['description'];
}
if ($title) {
$element = getlocations_element_map_checkbox($title, $default, $description);
return $element;
}
return FALSE;
}