You are here

function getlocations_fields_sv_control_form in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_sv_control_form()
3 calls to getlocations_fields_sv_control_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_fields_plugin_style_streetview::options_form in modules/getlocations_fields/views/getlocations_fields_plugin_style_streetview.inc
Provide a form to edit options for this plugin.
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.

File

modules/getlocations_fields/getlocations_fields.module, line 4053
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_sv_control_form($settings) {
  $controlpositions = getlocations_controlpositions();
  $form = array();
  $form['sv_addresscontrol'] = getlocations_element_map_checkbox(t('Show Streetview address'), $settings['sv_addresscontrol']);
  $form['sv_addresscontrol']['#suffix'] = '<div id="wrap-getlocations-sv-addresscontrol">';
  $form['sv_addresscontrolposition'] = getlocations_element_dd(t('Position of Streetview address display'), $settings['sv_addresscontrolposition'], $controlpositions);
  $form['sv_addresscontrolposition']['#suffix'] = '</div>';
  $form['sv_pancontrol'] = getlocations_element_map_checkbox(t('Show Streetview Pan Control'), $settings['sv_pancontrol']);
  $form['sv_pancontrol']['#suffix'] = '<div id="wrap-getlocations-sv-pancontrol">';
  $form['sv_pancontrolposition'] = getlocations_element_dd(t('Position of Streetview Pan Control'), $settings['sv_pancontrolposition'], $controlpositions);
  $form['sv_pancontrolposition']['#suffix'] = '</div>';
  $form['sv_zoomcontrol'] = getlocations_element_map_zoom_controltype($settings['sv_zoomcontrol'], t('Streetview Zoom Control type'));
  $form['sv_zoomcontrol']['#suffix'] = '<div id="wrap-getlocations-sv-zoomcontrol">';
  $form['sv_zoomcontrolposition'] = getlocations_element_dd(t('Position of Streetview Zoom Control'), $settings['sv_zoomcontrolposition'], $controlpositions);
  $form['sv_zoomcontrolposition']['#suffix'] = '</div>';
  $form['sv_linkscontrol'] = getlocations_element_map_checkbox(t('Enable Streetview links'), $settings['sv_linkscontrol']);
  $form['sv_imagedatecontrol'] = getlocations_element_map_checkbox(t('Show Streetview image date'), $settings['sv_imagedatecontrol']);
  $form['sv_scrollwheel'] = getlocations_element_map_checkbox(t('Enable Streetview scrollwheel'), $settings['sv_scrollwheel']);
  $form['sv_clicktogo'] = getlocations_element_map_checkbox(t('Enable Streetview clickToGo'), $settings['sv_clicktogo'], t('Enable navigating Streetview by clicking on it.'));
  return $form;
}