function _getlocations_gps_map_display_options_form in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_gps/getlocations_gps.module \_getlocations_gps_map_display_options_form()
Actual settings form.
1 call to _getlocations_gps_map_display_options_form()
- getlocations_gps_map_display_options_form in modules/
getlocations_gps/ getlocations_gps.module
File
- modules/
getlocations_gps/ getlocations_gps.module, line 283 - getlocations_gps.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function _getlocations_gps_map_display_options_form($defaults) {
$getlocations_gps_paths = getlocations_gps_paths_get();
drupal_add_js($getlocations_gps_paths['getlocations_gps_admin_path']);
$form['gps_button'] = getlocations_element_map_checkbox(t('Show GPS button'), $defaults['gps_button']);
$form['gps_button']['#suffix'] = '<div id="wrap-getlocations-gps-button">';
$form['gps_button_label'] = getlocations_element_map_tf(t('GPS button label'), $defaults['gps_button_label'], '', 30, 30, TRUE);
$markers = getlocations_get_marker_titles();
$form['gps_marker'] = getlocations_element_map_marker(t('GPS Map marker'), $markers, $defaults['gps_marker'], '');
$form['gps_marker_title'] = getlocations_element_map_tf(t('GPS Marker title'), $defaults['gps_marker_title'], '', 30, 30, TRUE);
$form['gps_type'] = getlocations_element_map_checkbox(t('Watch the current location'), $defaults['gps_type'], t('Watch the location supplied by GPS and move the marker when the location changes.'));
$form['gps_geocode'] = getlocations_element_map_checkbox(t('Geocode the current location'), $defaults['gps_geocode'], t('Attempt a reverse Geocode on the location supplied by GPS.'));
$form['gps_bubble'] = getlocations_element_map_checkbox(t('Show bubble on GPS Marker click'), $defaults['gps_bubble'], t('This only applies if the location has been Geocoded.'));
$form['gps_zoom'] = array(
'#type' => 'select',
'#title' => t('GPS marker Zoom'),
'#default_value' => $defaults['gps_zoom'],
'#options' => array(
'-1' => t('None'),
) + drupal_map_assoc(range(0, 21)),
);
$form['gps_center'] = getlocations_element_map_checkbox(t('Center the GPS marker on the map'), $defaults['gps_center']);
$form['gps_center']['#suffix'] = '</div>';
return $form;
}