You are here

function getlocations_search_defaults in Get Locations 7

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

Set up default settings.

Return value

array $newdefaults

11 calls to getlocations_search_defaults()
getlocations_places_check in ./getlocations.module
Function to check wether the google places library should be enabled.
getlocations_search_allinfo in modules/getlocations_search/getlocations_search.module
getlocations_search_block_defaults in modules/getlocations_search/getlocations_search.module
getlocations_search_form in modules/getlocations_search/getlocations_search.module
The search form
getlocations_search_getmap in modules/getlocations_search/getlocations_search.module
Set up the map and use getlocations to spit it out

... See full list

3 string references to 'getlocations_search_defaults'
getlocations_search_uninstall in modules/getlocations_search/getlocations_search.install
Implements hook_uninstall().
getlocations_tools_import_form_submit in modules/getlocations_tools/getlocations_tools.module
_getlocations_search_settings_form in modules/getlocations_search/getlocations_search.admin.inc

File

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

Code

function getlocations_search_defaults() {
  $getlocations_defaults = getlocations_defaults();
  $defaults = array(
    'method' => 'google_ac',
    'vocab' => '',
    'vocab_element' => 'dropdown',
    'search_distance' => 1,
    'search_distance_type' => 'mbr',
    'search_units' => 'km',
    'search_limits' => 0,
    'search_type' => 'all',
    'display_dms' => 0,
    'display_latlon' => 0,
    'display_geo_microformat' => 0,
    'display_accuracy' => 0,
    'show_distance' => 0,
    'search_marker' => 'drupal',
    'do_search_marker' => 0,
    'search_marker_toggle' => 0,
    'search_marker_toggle_active' => 1,
    'display_search_distance' => 1,
    'display_search_units' => 1,
    'display_search_limits' => 1,
    'display_search_type' => 1,
    'autocomplete_bias' => 0,
    'restrict_by_country' => 0,
    'searchbox_size' => 50,
    'country' => variable_get('site_default_country', ''),
    'width' => $getlocations_defaults['width'],
    'height' => $getlocations_defaults['height'],
    'styles' => $getlocations_defaults['styles'],
    'latlong' => $getlocations_defaults['latlong'],
    'zoom' => $getlocations_defaults['zoom'],
    'minzoom_map' => $getlocations_defaults['minzoom_map'],
    'maxzoom_map' => $getlocations_defaults['maxzoom_map'],
    'controltype' => $getlocations_defaults['controltype'],
    'pancontrol' => $getlocations_defaults['pancontrol'],
    'mtc' => $getlocations_defaults['mtc'],
    'maptype' => $getlocations_defaults['maptype'],
    'baselayers' => $getlocations_defaults['baselayers'],
    'scale' => $getlocations_defaults['scale'],
    'overview' => $getlocations_defaults['overview'],
    'overview_opened' => $getlocations_defaults['overview_opened'],
    'scrollwheel' => $getlocations_defaults['scrollwheel'],
    'draggable' => $getlocations_defaults['draggable'],
    'sv_show' => $getlocations_defaults['sv_show'],
    'sv_showfirst' => $getlocations_defaults['sv_showfirst'],
    'sv_heading' => $getlocations_defaults['sv_heading'],
    'sv_zoom' => $getlocations_defaults['sv_zoom'],
    'sv_pitch' => $getlocations_defaults['sv_pitch'],
    'trafficinfo' => $getlocations_defaults['trafficinfo'],
    'trafficinfo_state' => $getlocations_defaults['trafficinfo_state'],
    'bicycleinfo' => $getlocations_defaults['bicycleinfo'],
    'bicycleinfo_state' => $getlocations_defaults['bicycleinfo_state'],
    'transitinfo' => $getlocations_defaults['transitinfo'],
    'transitinfo_state' => $getlocations_defaults['transitinfo_state'],
    'poi_show' => $getlocations_defaults['poi_show'],
    'transit_show' => $getlocations_defaults['transit_show'],
    'markeraction' => $getlocations_defaults['markeraction'],
    'markeractiontype' => $getlocations_defaults['markeractiontype'],
    'markeraction_click_center' => $getlocations_defaults['markeraction_click_center'],
    'markeraction_click_zoom' => $getlocations_defaults['markeraction_click_zoom'],
    'minzoom' => $getlocations_defaults['minzoom'],
    'maxzoom' => $getlocations_defaults['maxzoom'],
    'nodezoom' => $getlocations_defaults['nodezoom'],
    'markermanagertype' => $getlocations_defaults['markermanagertype'],
    'usemarkermanager' => $getlocations_defaults['usemarkermanager'],
    'useclustermanager' => $getlocations_defaults['useclustermanager'],
    'markerclusterer_style' => $getlocations_defaults['markerclusterer_style'],
    'markerclusterer_zoom' => $getlocations_defaults['markerclusterer_zoom'],
    'markerclusterer_size' => $getlocations_defaults['markerclusterer_size'],
    'markerclusterer_minsize' => $getlocations_defaults['markerclusterer_minsize'],
    'markerclusterer_title' => $getlocations_defaults['markerclusterer_title'],
    'markerclusterer_imgpath' => $getlocations_defaults['markerclusterer_imgpath'],
    'pansetting' => $getlocations_defaults['pansetting'],
    'use_geolocation_button' => $getlocations_defaults['use_jsapi'],
    'map_backgroundcolor' => $getlocations_defaults['map_backgroundcolor'],
    'show_maplinks' => $getlocations_defaults['show_maplinks'],
    'show_maplinks_viewport' => $getlocations_defaults['show_maplinks_viewport'],
    'fullscreen' => $getlocations_defaults['fullscreen'],
    'fullscreen_controlposition' => $getlocations_defaults['fullscreen_controlposition'],
    'show_bubble_on_one_marker' => $getlocations_defaults['show_bubble_on_one_marker'],
    'polygons_enable' => $getlocations_defaults['polygons_enable'],
    'polygons_strokecolor' => $getlocations_defaults['polygons_strokecolor'],
    'polygons_strokeopacity' => $getlocations_defaults['polygons_strokeopacity'],
    'polygons_strokeweight' => $getlocations_defaults['polygons_strokeweight'],
    'polygons_fillcolor' => $getlocations_defaults['polygons_fillcolor'],
    'polygons_fillopacity' => $getlocations_defaults['polygons_fillopacity'],
    'polygons_coords' => $getlocations_defaults['polygons_coords'],
    'polygons_clickable' => $getlocations_defaults['polygons_clickable'],
    'polygons_message' => $getlocations_defaults['polygons_message'],
    'rectangles_enable' => $getlocations_defaults['rectangles_enable'],
    'rectangles_strokecolor' => $getlocations_defaults['rectangles_strokecolor'],
    'rectangles_strokeopacity' => $getlocations_defaults['rectangles_strokeopacity'],
    'rectangles_strokeweight' => $getlocations_defaults['rectangles_strokeweight'],
    'rectangles_fillcolor' => $getlocations_defaults['rectangles_fillcolor'],
    'rectangles_fillopacity' => $getlocations_defaults['rectangles_fillopacity'],
    'rectangles_coords' => $getlocations_defaults['rectangles_coords'],
    'rectangles_clickable' => $getlocations_defaults['rectangles_clickable'],
    'rectangles_message' => $getlocations_defaults['rectangles_message'],
    'rectangles_apply' => $getlocations_defaults['rectangles_apply'],
    'rectangles_dist' => $getlocations_defaults['rectangles_dist'],
    'circles_enable' => $getlocations_defaults['circles_enable'],
    'circles_strokecolor' => $getlocations_defaults['circles_strokecolor'],
    'circles_strokeopacity' => $getlocations_defaults['circles_strokeopacity'],
    'circles_strokeweight' => $getlocations_defaults['circles_strokeweight'],
    'circles_fillcolor' => $getlocations_defaults['circles_fillcolor'],
    'circles_fillopacity' => $getlocations_defaults['circles_fillopacity'],
    'circles_coords' => $getlocations_defaults['circles_coords'],
    'circles_clickable' => $getlocations_defaults['circles_clickable'],
    'circles_message' => $getlocations_defaults['circles_message'],
    'circles_radius' => $getlocations_defaults['circles_radius'],
    'circles_apply' => $getlocations_defaults['circles_apply'],
    'polylines_enable' => $getlocations_defaults['polylines_enable'],
    'polylines_strokecolor' => $getlocations_defaults['polylines_strokecolor'],
    'polylines_strokeopacity' => $getlocations_defaults['polylines_strokeopacity'],
    'polylines_strokeweight' => $getlocations_defaults['polylines_strokeweight'],
    'polylines_coords' => $getlocations_defaults['polylines_coords'],
    'polylines_clickable' => $getlocations_defaults['polylines_clickable'],
    'polylines_message' => $getlocations_defaults['polylines_message'],
    'kml_group' => $getlocations_defaults['kml_group'],
    'map_resize' => $getlocations_defaults['map_resize'],
    'region_bias' => $getlocations_defaults['region_bias'],
    'fullscreen_disable' => $getlocations_defaults['fullscreen_disable'],
    'search_places' => $getlocations_defaults['search_places'],
    'search_places_size' => $getlocations_defaults['search_places_size'],
    'search_places_position' => $getlocations_defaults['search_places_position'],
    'search_places_label' => $getlocations_defaults['search_places_label'],
    'search_places_placeholder' => $getlocations_defaults['search_places_placeholder'],
    'search_places_dd' => $getlocations_defaults['search_places_dd'],
    'search_places_list' => $getlocations_defaults['search_places_list'],
    'search_radshape_enable' => 0,
    'search_radshape_strokecolor' => $getlocations_defaults['circles_strokecolor'],
    'search_radshape_strokeopacity' => $getlocations_defaults['circles_strokeopacity'],
    'search_radshape_strokeweight' => $getlocations_defaults['circles_strokeweight'],
    'search_radshape_fillcolor' => $getlocations_defaults['circles_fillcolor'],
    'search_radshape_fillopacity' => $getlocations_defaults['circles_fillopacity'],
    'search_radshape_toggle' => 0,
    'search_radshape_toggle_active' => 1,
    'zoom_on_single_use' => 1,
    'geo_enable' => 1,
    'geojson_enable' => $getlocations_defaults['geojson_enable'],
    'geojson_data' => $getlocations_defaults['geojson_data'],
    'geojson_options' => $getlocations_defaults['geojson_options'],
    'nokeyboard' => $getlocations_defaults['nokeyboard'],
    'nodoubleclickzoom' => $getlocations_defaults['nodoubleclickzoom'],
    'zoomcontrolposition' => $getlocations_defaults['zoomcontrolposition'],
    'pancontrolposition' => $getlocations_defaults['pancontrolposition'],
    'mapcontrolposition' => $getlocations_defaults['mapcontrolposition'],
    'scalecontrolposition' => $getlocations_defaults['scalecontrolposition'],
    'svcontrolposition' => $getlocations_defaults['svcontrolposition'],
    'showall' => 0,
    'highlight_enable' => $getlocations_defaults['highlight_enable'],
    'highlight_strokecolor' => $getlocations_defaults['highlight_strokecolor'],
    'highlight_strokeopacity' => $getlocations_defaults['highlight_strokeopacity'],
    'highlight_strokeweight' => $getlocations_defaults['highlight_strokeweight'],
    'highlight_fillcolor' => $getlocations_defaults['highlight_fillcolor'],
    'highlight_fillopacity' => $getlocations_defaults['highlight_fillopacity'],
    'highlight_radius' => $getlocations_defaults['highlight_radius'],
    'getdirections_link' => $getlocations_defaults['getdirections_link'],
    'geocode_button_enable' => 0,
    'reset_button_enable' => 0,
    'gps_button' => 0,
    'gps_button_label' => $getlocations_defaults['gps_button_label'],
    'gps_marker' => $getlocations_defaults['gps_marker'],
    'gps_marker_title' => $getlocations_defaults['gps_marker_title'],
    'gps_bubble' => $getlocations_defaults['gps_bubble'],
    'gps_geocode' => $getlocations_defaults['gps_geocode'],
    'gps_center' => $getlocations_defaults['gps_center'],
    'gps_type' => $getlocations_defaults['gps_type'],
    'gps_zoom' => $getlocations_defaults['gps_zoom'],
    'smartip_button' => 0,
    'smartip_button_label' => $getlocations_defaults['smartip_button_label'],
    'smartip_marker' => $getlocations_defaults['smartip_marker'],
    'smartip_marker_title' => $getlocations_defaults['smartip_marker_title'],
    'smartip_bubble' => $getlocations_defaults['smartip_bubble'],
    'smartip_center' => $getlocations_defaults['smartip_center'],
    'smartip_zoom' => $getlocations_defaults['smartip_zoom'],
    'smartip_callback' => $getlocations_defaults['smartip_callback'],
    'geolocation_mobile_check' => $getlocations_defaults['geolocation_mobile_check'],
    'geocoder_enable' => $getlocations_defaults['geocoder_enable'],
  );
  $settings = variable_get('getlocations_search_defaults', $defaults);
  $getlocations_search_defaults = getlocations_adjust_vars($defaults, $settings);
  return $getlocations_search_defaults;
}