You are here

function getlocations_mapquest_defaults in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_defaults()

Function

Return value

Returns

5 calls to getlocations_mapquest_defaults()
getlocations_mapquest_entity_type_map in modules/getlocations_mapquest/getlocations_mapquest.module
Function
getlocations_mapquest_map_formatter_defaults in modules/getlocations_mapquest/getlocations_mapquest.module
Function
getlocations_mapquest_plugin_style::option_definition in modules/getlocations_mapquest/views/getlocations_mapquest_plugin_style.inc
Information about options for all kinds of purposes will be held here.
getlocations_mapquest_settings_form in modules/getlocations_mapquest/getlocations_mapquest.module
Function
theme_getlocations_mapquest_settings_form in modules/getlocations_mapquest/getlocations_mapquest.module
Function

File

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

Code

function getlocations_mapquest_defaults() {
  $getlocations_defaults = getlocations_defaults();
  $newdefaults = array(
    'width' => $getlocations_defaults['width'],
    'height' => $getlocations_defaults['height'],
    'zoom' => $getlocations_defaults['zoom'],
    'minzoom_map' => $getlocations_defaults['minzoom_map'],
    'maxzoom_map' => $getlocations_defaults['maxzoom_map'],
    'latlong' => $getlocations_defaults['latlong'],
    'nodezoom' => $getlocations_defaults['nodezoom'],
    // categories
    'category_method' => $getlocations_defaults['category_method'],
    'category_term_reference_field' => $getlocations_defaults['category_term_reference_field'],
    'category_showhide_buttons' => $getlocations_defaults['category_showhide_buttons'],
    'categories' => $getlocations_defaults['categories'],
    'returnlink_page_enable' => $getlocations_defaults['returnlink_page_enable'],
    'returnlink_page_link' => $getlocations_defaults['returnlink_page_link'],
    'returnlink_user_enable' => $getlocations_defaults['returnlink_user_enable'],
    'returnlink_user_link' => $getlocations_defaults['returnlink_user_link'],
    'returnlink_term_enable' => $getlocations_defaults['returnlink_term_enable'],
    'returnlink_term_link' => $getlocations_defaults['returnlink_term_link'],
    'returnlink_comment_enable' => $getlocations_defaults['returnlink_comment_enable'],
    'returnlink_comment_link' => $getlocations_defaults['returnlink_comment_link'],
    'node_map_marker' => $getlocations_defaults['node_map_marker'],
    'user_map_marker' => $getlocations_defaults['user_map_marker'],
    'vocabulary_map_marker' => $getlocations_defaults['vocabulary_map_marker'],
    'term_map_marker' => $getlocations_defaults['term_map_marker'],
    'comment_map_marker' => $getlocations_defaults['comment_map_marker'],
    'dragging' => $getlocations_defaults['draggable'],
    'scrollWheelZoom' => $getlocations_defaults['scrollwheel'],
    'doubleClickZoom' => $getlocations_defaults['nodoubleclickzoom'] ? 0 : 1,
    'jquery_colorpicker_enabled' => $getlocations_defaults['jquery_colorpicker_enabled'],
    'getdirections_link' => $getlocations_defaults['getdirections_link'],
    'show_maplinks' => $getlocations_defaults['show_maplinks'],
    'show_search_distance' => $getlocations_defaults['show_search_distance'],
    'views_search_marker_enable' => $getlocations_defaults['views_search_marker_enable'],
    'views_search_marker' => $getlocations_defaults['views_search_marker'],
    'views_search_marker_toggle' => $getlocations_defaults['views_search_marker_toggle'],
    'views_search_marker_toggle_active' => $getlocations_defaults['views_search_marker_toggle_active'],
    'views_search_radshape_enable' => $getlocations_defaults['views_search_radshape_enable'],
    'views_search_radshape_strokecolor' => $getlocations_defaults['views_search_radshape_strokecolor'],
    'views_search_radshape_strokeopacity' => $getlocations_defaults['views_search_radshape_strokeopacity'],
    'views_search_radshape_strokeweight' => $getlocations_defaults['views_search_radshape_strokeweight'],
    'views_search_radshape_fillcolor' => $getlocations_defaults['views_search_radshape_fillcolor'],
    'views_search_radshape_fillopacity' => $getlocations_defaults['views_search_radshape_fillopacity'],
    'views_search_radshape_toggle' => $getlocations_defaults['views_search_radshape_toggle'],
    'views_search_radshape_toggle_active' => $getlocations_defaults['views_search_radshape_toggle_active'],
    'views_search_center' => $getlocations_defaults['views_search_center'],
    'geolocation_mobile_check' => $getlocations_defaults['geolocation_mobile_check'],
  );
  $newdefaults['zoomControl'] = 'none';
  $newdefaults['zoomcontrolposition'] = '';
  $newdefaults['zoomcontrol_vset'] = 5;
  $newdefaults['zoomcontrol_hset'] = 5;
  $newdefaults['layerControl'] = 0;
  $newdefaults['layercontrolposition'] = '';
  $newdefaults['layercontrol_vset'] = 5;
  $newdefaults['layercontrol_hset'] = 5;
  $newdefaults['overview'] = 0;
  $newdefaults['overview_opened'] = 0;
  $newdefaults['overviewposition'] = '';
  $newdefaults['overview_vset'] = 125;
  $newdefaults['overview_hset'] = 150;
  $newdefaults['overview_zoom'] = 3;
  $newdefaults['trafficControl'] = 0;
  $newdefaults['trafficcontrolposition'] = '';
  $newdefaults['trafficcontrol_vset'] = 5;
  $newdefaults['trafficcontrol_hset'] = 5;
  $newdefaults['drawingControl'] = 0;
  $newdefaults['drawingcontrolposition'] = '';
  $newdefaults['drawingcontrol_vset'] = 5;
  $newdefaults['drawingcontrol_hset'] = 5;
  $newdefaults['geolocationControl'] = 0;
  $newdefaults['geolocationcontrolposition'] = '';
  $newdefaults['geolocationcontrol_vset'] = 5;
  $newdefaults['geolocationcontrol_hset'] = 5;
  $newdefaults['markeraction'] = '';
  $newdefaults['marker_type'] = 'gg';

  // or 'fa'
  $newdefaults['map_resize'] = 0;
  $newdefaults['fullscreen_disable'] = 0;
  $newdefaults['styles'] = '';

  // custom content
  $newdefaults['custom_content_enable'] = 0;
  $newdefaults['custom_content_source'] = '';
  $newdefaults['maps_default'] = 'map';
  $newdefaults['bestfitmargin'] = 0;
  $settings = variable_get('getlocations_mapquest_defaults', '');
  $newdefaults['baselayers'] = isset($settings['baselayers']) && !empty($settings['baselayers']) ? $settings['baselayers'] : array(
    'OpenStreetMap.Mapnik',
  );
  $settings = getlocations_adjust_vars($newdefaults, $settings);
  return $settings;
}