function getlocations_element_map_zoom_map in Get Locations 7
Same name and namespace in other branches
- 7.2 getlocations.module \getlocations_element_map_zoom_map()
Function
Return value
Returns form element
2 calls to getlocations_element_map_zoom_map()
- getlocations_fields_display_settings_form in modules/
getlocations_fields/ getlocations_fields.module - display settings form for sharing
- getlocations_map_display_basics_form in ./
getlocations.module - Function
File
- ./
getlocations.module, line 3397 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_element_map_zoom_map($title, $default, $description = '') {
$opts = array(
'-1' => t('Use map type settings'),
) + drupal_map_assoc(range(0, 21));
$element = array(
'#type' => 'select',
'#title' => $title,
'#default_value' => $default,
'#options' => $opts,
);
if (!empty($description)) {
$element['#description'] = $description;
}
return $element;
}