function getlocations_fields_defaults in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_defaults()
Return value
array $defaults Settings
15 calls to getlocations_fields_defaults()
- getlocations_feeds_set_country in modules/
getlocations_feeds/ getlocations_feeds.module - Set the country and attempt to support non-iso country imports
- getlocations_fields_field_formatter_info_defaults in modules/
getlocations_fields/ getlocations_fields.module - 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_field_info_defaults in modules/
getlocations_fields/ getlocations_fields.module - getlocations_fields_field_widget_info in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_field_widget_info(). Expose Field API widget types.
3 string references to 'getlocations_fields_defaults'
- getlocations_fields_uninstall in modules/
getlocations_fields/ getlocations_fields.install - Implements hook_uninstall().
- getlocations_location_taxonomize_get_fields in modules/
getlocations_location_taxonomize/ getlocations_location_taxonomize.inc - Returns the Getlocations Fields fields that can be used for the Location Vocabulary
- getlocations_tools_import_form_submit in modules/
getlocations_tools/ getlocations_tools.module
File
- modules/
getlocations_fields/ getlocations_fields.module, line 2662 - getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_defaults() {
$getlocations_defaults = getlocations_defaults();
$dvals = getlocations_fields_data_keys('d');
$defaults = array(
'country' => variable_get('site_default_country', ''),
'display_mapwidth' => $getlocations_defaults['width'],
'display_mapheight' => $getlocations_defaults['height'],
'nodezoom' => $getlocations_defaults['nodezoom'],
'minzoom_map' => $getlocations_defaults['minzoom_map'],
'maxzoom_map' => $getlocations_defaults['maxzoom_map'],
'map_backgroundcolor' => $getlocations_defaults['map_backgroundcolor'],
'show_maplinks' => $getlocations_defaults['show_maplinks'],
'fullscreen' => $getlocations_defaults['fullscreen'],
'fullscreen_controlposition' => $getlocations_defaults['fullscreen_controlposition'],
'show_bubble_on_one_marker' => $getlocations_defaults['show_bubble_on_one_marker'],
'display_showmap' => 1,
'display_maplink' => 1,
'display_latlong' => 1,
'display_dms' => 0,
'display_geo_microformat' => 0,
'display_onemap' => 0,
'display_name' => 1,
'display_street' => 1,
'display_additional' => 1,
'display_city' => 1,
'display_province' => 1,
'display_postal_code' => 1,
'display_country' => 1,
'display_phone' => 1,
'display_mobile' => 1,
'display_fax' => 1,
'country_full' => 1,
'use_address' => 1,
'input_address_width' => 40,
'input_name_width' => 40,
'input_street_width' => 40,
'input_additional_width' => 40,
'input_city_width' => 40,
'input_province_width' => 40,
'input_postal_code_width' => 40,
'input_country_width' => 40,
'input_phone_width' => 20,
'input_mobile_width' => 20,
'input_fax_width' => 20,
'input_latitude_width' => 20,
'input_longitude_width' => 20,
'input_name_required' => 0,
'input_street_required' => 0,
'input_additional_required' => 0,
'input_city_required' => 0,
'input_province_required' => 0,
'input_postal_code_required' => 0,
'input_country_required' => 0,
'input_phone_required' => 0,
'input_mobile_required' => 0,
'input_fax_required' => 0,
'input_name_weight' => 0,
'input_street_weight' => 0,
'input_additional_weight' => 0,
'input_city_weight' => 0,
'input_province_weight' => 0,
'input_postal_code_weight' => 0,
'input_country_weight' => 0,
'input_phone_weight' => 0,
'input_mobile_weight' => 0,
'input_fax_weight' => 0,
'input_latitude_weight' => 0,
'input_longitude_weight' => 0,
'input_map_weight' => 0,
'input_marker_weight' => 0,
'input_geobutton_weight' => 0,
'input_smart_ip_button_weight' => 0,
'input_geolocation_button_weight' => 0,
'input_clear_button_weight' => 0,
'use_clear_button' => 1,
'use_smart_ip_button' => 0,
'use_geolocation_button' => 0,
'use_country_dropdown' => 1,
'only_continents' => '',
'only_countries' => '',
'province_autocomplete' => 0,
'city_autocomplete' => 0,
'per_item_marker' => 0,
'street_num_pos' => 1,
'latlon_warning' => 0,
'map_settings_allow' => 0,
'streetview_settings_allow' => 0,
'sv_heading' => $dvals['sv_heading'],
'sv_zoom' => $dvals['sv_zoom'],
'sv_pitch' => $dvals['sv_pitch'],
'sv_enable' => $dvals['sv_enable'],
'sv_showfirst' => $getlocations_defaults['sv_showfirst'],
'autocomplete_bias' => 0,
'restrict_by_country' => 0,
'search_country' => variable_get('site_default_country', ''),
'use_smart_ip_latlon' => 0,
'columns' => array(
'glid' => t('Glid'),
'name' => t('Name'),
'street' => t('Street'),
'additional' => t('Additional'),
'city' => t('City'),
'province' => t('Province'),
'postal_code' => t('Post code'),
'country' => t('Country'),
'latitude' => t('Latitude'),
'longitude' => t('Longitude'),
'marker' => t('Marker'),
'data' => t('Data'),
),
'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'],
'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'],
'jquery_colorpicker_enabled' => $getlocations_defaults['jquery_colorpicker_enabled'],
'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'],
'mapcontrolposition' => $getlocations_defaults['mapcontrolposition'],
'pancontrolposition' => $getlocations_defaults['pancontrolposition'],
'scalecontrolposition' => $getlocations_defaults['scalecontrolposition'],
'svcontrolposition' => $getlocations_defaults['svcontrolposition'],
'sv_addresscontrol' => $getlocations_defaults['sv_addresscontrol'],
// sv overlay controls
'sv_addresscontrolposition' => $getlocations_defaults['sv_addresscontrolposition'],
'sv_pancontrol' => $getlocations_defaults['sv_pancontrol'],
'sv_pancontrolposition' => $getlocations_defaults['sv_pancontrolposition'],
'sv_zoomcontrol' => $getlocations_defaults['sv_zoomcontrol'],
'sv_zoomcontrolposition' => $getlocations_defaults['sv_zoomcontrolposition'],
'sv_linkscontrol' => $getlocations_defaults['sv_linkscontrol'],
'sv_imagedatecontrol' => $getlocations_defaults['sv_imagedatecontrol'],
'sv_scrollwheel' => $getlocations_defaults['sv_scrollwheel'],
'sv_clicktogo' => $getlocations_defaults['sv_clicktogo'],
'input_map_show' => 1,
'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'],
'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'],
'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'],
'geocoder_enable' => $getlocations_defaults['geocoder_enable'],
);
foreach ($getlocations_defaults['baselayers'] as $key => $layer) {
$defaults['baselayers'][$key] = $layer;
}
foreach ($getlocations_defaults['kml_group'] as $key => $layer) {
$defaults['kml_group'][$key] = $layer;
}
// what3words
$defaults['what3words_display'] = 0;
$defaults['what3words_collect'] = 0;
$getlocations_fields_defaults = variable_get('getlocations_fields_defaults', $defaults);
$newdefaults = getlocations_adjust_vars($defaults, $getlocations_fields_defaults);
return $newdefaults;
}