You are here

function getlocations_markeraction_form in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_markeraction_form()
5 calls to getlocations_markeraction_form()
getlocations_fields_field_formatter_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
getlocations_map_field_formatter_settings_form in modules/getlocations_map/getlocations_map.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
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
_getlocations_search_settings_form in modules/getlocations_search/getlocations_search.admin.inc

File

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

Code

function getlocations_markeraction_form($defaults) {
  $form = array();
  $form['markeractiontype'] = getlocations_element_map_markeractiontype($defaults['markeractiontype']);
  $form['markeraction'] = getlocations_element_map_markeraction($defaults['markeraction']);
  $form['markeraction_click_center'] = getlocations_element_dd(t('Center or Pan on Marker click'), $defaults['markeraction_click_center'], array(
    0 => t('None'),
    1 => t('Center'),
    2 => t('Pan to'),
  ));
  $form['markeraction_click_zoom'] = array(
    '#type' => 'select',
    '#title' => t('Zoom on Marker click'),
    '#default_value' => $defaults['markeraction_click_zoom'],
    '#options' => array(
      '-1' => t('None'),
    ) + drupal_map_assoc(range(0, 21)),
  );
  return $form;
}