You are here

function getlocations_element_map_pansetting in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_element_map_pansetting()
  2. 6 getlocations.module \getlocations_element_map_pansetting()
  3. 7.2 getlocations.module \getlocations_element_map_pansetting()

Function

Return value

Returns form element

2 calls to getlocations_element_map_pansetting()
getlocations_plugin_style_map::options_form in views/getlocations_plugin_style_map.inc
Provide a form to edit options for this plugin.
getlocations_settings_form in ./getlocations.admin.inc
Function to display the getlocations admin settings form

File

./getlocations.module, line 3550
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_element_map_pansetting($default) {
  $element = array(
    '#type' => 'select',
    '#title' => t('Automatic Panning'),
    '#default_value' => $default,
    '#options' => array(
      0 => t('None'),
      1 => t('Pan'),
      2 => t('Pan and zoom'),
      3 => t('Set Center'),
    ),
    '#description' => t("'None' is No panning,") . '<br />' . t("'Pan' keeps the markers in the Viewport,") . '<br />' . t("'Pan and zoom' fits the markers to the Viewport,") . '<br />' . t("'Set Center' places the markers in the middle of the map."),
  );
  return $element;
}