function getlocations_element_map_zoom in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_element_map_zoom()
- 6 getlocations.module \getlocations_element_map_zoom()
- 7.2 getlocations.module \getlocations_element_map_zoom()
Function
Return value
Returns form element
10 calls to getlocations_element_map_zoom()
- getlocations_fields_display_settings_form in modules/
getlocations_fields/ getlocations_fields.module - display settings form for sharing
- getlocations_fields_field_settings_form in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_field_settings_form(). Add settings to a field settings form.
- getlocations_leaflet_display_options_form in modules/
getlocations_leaflet/ getlocations_leaflet.module - Function
- getlocations_mapquest_display_options_form in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
- getlocations_map_display_basics_form in ./
getlocations.module - Function
File
- ./
getlocations.module, line 3374 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_element_map_zoom($title, $default, $description = '') {
$element = array(
'#type' => 'select',
'#title' => $title,
'#default_value' => $default,
'#options' => drupal_map_assoc(range(0, 21)),
);
if (!empty($description)) {
$element['#description'] = $description;
}
return $element;
}