You are here

function getlocations_fields_field_info_defaults in Get Locations 7

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

Return value

array $defaults Settings for the Field module

1 call to getlocations_fields_field_info_defaults()
getlocations_fields_field_info in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_info(). Define Field API field types.

File

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

Code

function getlocations_fields_field_info_defaults() {
  $getlocations_defaults = getlocations_defaults();
  $getlocations_fields_defaults = getlocations_fields_defaults();
  $defaults = array(
    'getlocations_fields' => array(
      'label' => t('Getlocations Fields'),
      'description' => t('Provide Getlocations Fields.'),
      'default_formatter' => 'getlocations_fields_default',
      'default_widget' => 'getlocations_fields',
      'settings' => array(
        'mapwidth' => $getlocations_defaults['width'],
        'mapheight' => $getlocations_defaults['height'],
        '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'],
        'scale' => $getlocations_defaults['scale'],
        'overview' => $getlocations_defaults['overview'],
        'overview_opened' => $getlocations_defaults['overview_opened'],
        'scrollwheel' => $getlocations_defaults['scrollwheel'],
        'draggable' => $getlocations_defaults['draggable'],
        'map_marker' => $getlocations_defaults['node_map_marker'],
        'node_map_marker' => $getlocations_defaults['node_map_marker'],
        'user_map_marker' => $getlocations_defaults['user_map_marker'],
        'vocabulary_map_marker' => $getlocations_defaults['vocabulary_map_marker'],
        'comment_map_marker' => $getlocations_defaults['comment_map_marker'],
        'input_map_marker' => $getlocations_defaults['input_map_marker'],
        'use_address' => $getlocations_fields_defaults['use_address'],
        'input_address_width' => $getlocations_fields_defaults['input_address_width'],
        'input_name_width' => $getlocations_fields_defaults['input_name_width'],
        'input_street_width' => $getlocations_fields_defaults['input_street_width'],
        'input_additional_width' => $getlocations_fields_defaults['input_additional_width'],
        'input_city_width' => $getlocations_fields_defaults['input_city_width'],
        'input_province_width' => $getlocations_fields_defaults['input_province_width'],
        'input_postal_code_width' => $getlocations_fields_defaults['input_postal_code_width'],
        'input_country_width' => $getlocations_fields_defaults['input_country_width'],
        'input_phone_width' => $getlocations_fields_defaults['input_phone_width'],
        'input_mobile_width' => $getlocations_fields_defaults['input_mobile_width'],
        'input_fax_width' => $getlocations_fields_defaults['input_fax_width'],
        'input_latitude_width' => $getlocations_fields_defaults['input_latitude_width'],
        'input_longitude_width' => $getlocations_fields_defaults['input_longitude_width'],
        'input_name_required' => $getlocations_fields_defaults['input_name_required'],
        'input_street_required' => $getlocations_fields_defaults['input_street_required'],
        'input_additional_required' => $getlocations_fields_defaults['input_additional_required'],
        'input_city_required' => $getlocations_fields_defaults['input_city_required'],
        'input_province_required' => $getlocations_fields_defaults['input_province_required'],
        'input_postal_code_required' => $getlocations_fields_defaults['input_postal_code_required'],
        'input_country_required' => $getlocations_fields_defaults['input_country_required'],
        'input_phone_required' => $getlocations_fields_defaults['input_phone_required'],
        'input_mobile_required' => $getlocations_fields_defaults['input_mobile_required'],
        'input_fax_required' => $getlocations_fields_defaults['input_fax_required'],
        'input_name_weight' => $getlocations_fields_defaults['input_name_weight'],
        'input_street_weight' => $getlocations_fields_defaults['input_street_weight'],
        'input_additional_weight' => $getlocations_fields_defaults['input_additional_weight'],
        'input_city_weight' => $getlocations_fields_defaults['input_city_weight'],
        'input_province_weight' => $getlocations_fields_defaults['input_province_weight'],
        'input_postal_code_weight' => $getlocations_fields_defaults['input_postal_code_weight'],
        'input_country_weight' => $getlocations_fields_defaults['input_country_weight'],
        'input_phone_weight' => $getlocations_fields_defaults['input_phone_weight'],
        'input_mobile_weight' => $getlocations_fields_defaults['input_mobile_weight'],
        'input_fax_weight' => $getlocations_fields_defaults['input_fax_weight'],
        'input_map_weight' => $getlocations_fields_defaults['input_map_weight'],
        'input_marker_weight' => $getlocations_fields_defaults['input_marker_weight'],
        'input_latitude_weight' => $getlocations_fields_defaults['input_latitude_weight'],
        'input_longitude_weight' => $getlocations_fields_defaults['input_longitude_weight'],
        'input_geobutton_weight' => $getlocations_fields_defaults['input_geobutton_weight'],
        'input_smart_ip_button_weight' => $getlocations_fields_defaults['input_smart_ip_button_weight'],
        'input_geolocation_button_weight' => $getlocations_fields_defaults['input_geolocation_button_weight'],
        'use_smart_ip_button' => $getlocations_fields_defaults['use_smart_ip_button'],
        'input_clear_button_weight' => $getlocations_fields_defaults['input_clear_button_weight'],
        'use_clear_button' => $getlocations_fields_defaults['use_clear_button'],
        'use_country_dropdown' => $getlocations_fields_defaults['use_country_dropdown'],
        'only_continents' => $getlocations_fields_defaults['only_continents'],
        'only_countries' => $getlocations_fields_defaults['only_countries'],
        'province_autocomplete' => $getlocations_fields_defaults['province_autocomplete'],
        'city_autocomplete' => $getlocations_fields_defaults['city_autocomplete'],
        'country' => $getlocations_fields_defaults['country'],
        'per_item_marker' => $getlocations_fields_defaults['per_item_marker'],
        'street_num_pos' => $getlocations_fields_defaults['street_num_pos'],
        'latlon_warning' => $getlocations_fields_defaults['latlon_warning'],
        'map_settings_allow' => $getlocations_fields_defaults['map_settings_allow'],
        'streetview_settings_allow' => $getlocations_fields_defaults['streetview_settings_allow'],
        'sv_heading' => $getlocations_fields_defaults['sv_heading'],
        'sv_zoom' => $getlocations_fields_defaults['sv_zoom'],
        'sv_pitch' => $getlocations_fields_defaults['sv_pitch'],
        'sv_enable' => $getlocations_fields_defaults['sv_enable'],
        'sv_showfirst' => $getlocations_fields_defaults['sv_showfirst'],
        'use_geolocation_button' => $getlocations_fields_defaults['use_geolocation_button'],
        'autocomplete_bias' => $getlocations_fields_defaults['autocomplete_bias'],
        'restrict_by_country' => $getlocations_fields_defaults['restrict_by_country'],
        'search_country' => $getlocations_fields_defaults['search_country'],
        'map_backgroundcolor' => $getlocations_fields_defaults['map_backgroundcolor'],
        'use_smart_ip_latlon' => $getlocations_fields_defaults['use_smart_ip_latlon'],
        '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'],
        'polygons_enable' => $getlocations_fields_defaults['polygons_enable'],
        'polygons_strokecolor' => $getlocations_fields_defaults['polygons_strokecolor'],
        'polygons_strokeopacity' => $getlocations_fields_defaults['polygons_strokeopacity'],
        'polygons_strokeweight' => $getlocations_fields_defaults['polygons_strokeweight'],
        'polygons_fillcolor' => $getlocations_fields_defaults['polygons_fillcolor'],
        'polygons_fillopacity' => $getlocations_fields_defaults['polygons_fillopacity'],
        'polygons_coords' => $getlocations_fields_defaults['polygons_coords'],
        'polygons_clickable' => $getlocations_fields_defaults['polygons_clickable'],
        'polygons_message' => $getlocations_fields_defaults['polygons_message'],
        'rectangles_enable' => $getlocations_fields_defaults['rectangles_enable'],
        'rectangles_strokecolor' => $getlocations_fields_defaults['rectangles_strokecolor'],
        'rectangles_strokeopacity' => $getlocations_fields_defaults['rectangles_strokeopacity'],
        'rectangles_strokeweight' => $getlocations_fields_defaults['rectangles_strokeweight'],
        'rectangles_fillcolor' => $getlocations_fields_defaults['rectangles_fillcolor'],
        'rectangles_fillopacity' => $getlocations_fields_defaults['rectangles_fillopacity'],
        'rectangles_coords' => $getlocations_fields_defaults['rectangles_coords'],
        'rectangles_clickable' => $getlocations_fields_defaults['rectangles_clickable'],
        'rectangles_message' => $getlocations_fields_defaults['rectangles_message'],
        'rectangles_apply' => $getlocations_fields_defaults['rectangles_apply'],
        'rectangles_dist' => $getlocations_fields_defaults['rectangles_dist'],
        'circles_enable' => $getlocations_fields_defaults['circles_enable'],
        'circles_strokecolor' => $getlocations_fields_defaults['circles_strokecolor'],
        'circles_strokeopacity' => $getlocations_fields_defaults['circles_strokeopacity'],
        'circles_strokeweight' => $getlocations_fields_defaults['circles_strokeweight'],
        'circles_fillcolor' => $getlocations_fields_defaults['circles_fillcolor'],
        'circles_fillopacity' => $getlocations_fields_defaults['circles_fillopacity'],
        'circles_coords' => $getlocations_fields_defaults['circles_coords'],
        'circles_clickable' => $getlocations_fields_defaults['circles_clickable'],
        'circles_message' => $getlocations_fields_defaults['circles_message'],
        'circles_radius' => $getlocations_fields_defaults['circles_radius'],
        'circles_apply' => $getlocations_fields_defaults['circles_apply'],
        'polylines_enable' => $getlocations_fields_defaults['polylines_enable'],
        'polylines_strokecolor' => $getlocations_fields_defaults['polylines_strokecolor'],
        'polylines_strokeopacity' => $getlocations_fields_defaults['polylines_strokeopacity'],
        'polylines_strokeweight' => $getlocations_fields_defaults['polylines_strokeweight'],
        'polylines_coords' => $getlocations_fields_defaults['polylines_coords'],
        'polylines_clickable' => $getlocations_fields_defaults['polylines_clickable'],
        'polylines_message' => $getlocations_fields_defaults['polylines_message'],
        'search_places' => $getlocations_fields_defaults['search_places'],
        'search_places_size' => $getlocations_fields_defaults['search_places_size'],
        'search_places_position' => $getlocations_fields_defaults['search_places_position'],
        'search_places_label' => $getlocations_fields_defaults['search_places_label'],
        'search_places_placeholder' => $getlocations_fields_defaults['search_places_placeholder'],
        'search_places_dd' => $getlocations_fields_defaults['search_places_dd'],
        'search_places_list' => $getlocations_fields_defaults['search_places_list'],
        'kml_group' => $getlocations_fields_defaults['kml_group'],
        'jquery_colorpicker_enabled' => $getlocations_fields_defaults['jquery_colorpicker_enabled'],
        'geojson_enable' => $getlocations_fields_defaults['geojson_enable'],
        'geojson_data' => $getlocations_fields_defaults['geojson_data'],
        'geojson_options' => $getlocations_fields_defaults['geojson_options'],
        'nokeyboard' => $getlocations_fields_defaults['nokeyboard'],
        'nodoubleclickzoom' => $getlocations_fields_defaults['nodoubleclickzoom'],
        'zoomcontrolposition' => $getlocations_fields_defaults['zoomcontrolposition'],
        'mapcontrolposition' => $getlocations_fields_defaults['mapcontrolposition'],
        'pancontrolposition' => $getlocations_fields_defaults['pancontrolposition'],
        'scalecontrolposition' => $getlocations_fields_defaults['scalecontrolposition'],
        'svcontrolposition' => $getlocations_fields_defaults['svcontrolposition'],
        'sv_addresscontrol' => $getlocations_fields_defaults['sv_addresscontrol'],
        // sv overlay controls
        'sv_addresscontrolposition' => $getlocations_fields_defaults['sv_addresscontrolposition'],
        'sv_pancontrol' => $getlocations_fields_defaults['sv_pancontrol'],
        'sv_pancontrolposition' => $getlocations_fields_defaults['sv_pancontrolposition'],
        'sv_zoomcontrol' => $getlocations_fields_defaults['sv_zoomcontrol'],
        'sv_zoomcontrolposition' => $getlocations_fields_defaults['sv_zoomcontrolposition'],
        'sv_linkscontrol' => $getlocations_fields_defaults['sv_linkscontrol'],
        'sv_imagedatecontrol' => $getlocations_fields_defaults['sv_imagedatecontrol'],
        'sv_scrollwheel' => $getlocations_fields_defaults['sv_scrollwheel'],
        'sv_clicktogo' => $getlocations_fields_defaults['sv_clicktogo'],
        'input_map_show' => $getlocations_fields_defaults['input_map_show'],
        'highlight_enable' => $getlocations_fields_defaults['highlight_enable'],
        'highlight_strokecolor' => $getlocations_fields_defaults['highlight_strokecolor'],
        'highlight_strokeopacity' => $getlocations_fields_defaults['highlight_strokeopacity'],
        'highlight_strokeweight' => $getlocations_fields_defaults['highlight_strokeweight'],
        'highlight_fillcolor' => $getlocations_fields_defaults['highlight_fillcolor'],
        'highlight_fillopacity' => $getlocations_fields_defaults['highlight_fillopacity'],
        'highlight_radius' => $getlocations_fields_defaults['highlight_radius'],
        'getdirections_link' => $getlocations_fields_defaults['getdirections_link'],
        'show_search_distance' => $getlocations_fields_defaults['show_search_distance'],
        'views_search_marker_enable' => $getlocations_fields_defaults['views_search_marker_enable'],
        'views_search_marker' => $getlocations_fields_defaults['views_search_marker'],
        'views_search_marker_toggle' => $getlocations_fields_defaults['views_search_marker_toggle'],
        'views_search_marker_toggle_active' => $getlocations_fields_defaults['views_search_marker_toggle_active'],
        'views_search_radshape_enable' => $getlocations_fields_defaults['views_search_radshape_enable'],
        'views_search_radshape_strokecolor' => $getlocations_fields_defaults['views_search_radshape_strokecolor'],
        'views_search_radshape_strokeopacity' => $getlocations_fields_defaults['views_search_radshape_strokeopacity'],
        'views_search_radshape_strokeweight' => $getlocations_fields_defaults['views_search_radshape_strokeweight'],
        'views_search_radshape_fillcolor' => $getlocations_fields_defaults['views_search_radshape_fillcolor'],
        'views_search_radshape_fillopacity' => $getlocations_fields_defaults['views_search_radshape_fillopacity'],
        'views_search_radshape_toggle' => $getlocations_fields_defaults['views_search_radshape_toggle'],
        'views_search_radshape_toggle_active' => $getlocations_fields_defaults['views_search_radshape_toggle_active'],
        'views_search_center' => $getlocations_fields_defaults['views_search_center'],
        'gps_button' => $getlocations_fields_defaults['gps_button'],
        'gps_button_label' => $getlocations_fields_defaults['gps_button_label'],
        'gps_marker' => $getlocations_fields_defaults['gps_marker'],
        'gps_marker_title' => $getlocations_fields_defaults['gps_marker_title'],
        'gps_bubble' => $getlocations_fields_defaults['gps_bubble'],
        'gps_geocode' => $getlocations_fields_defaults['gps_geocode'],
        'gps_center' => $getlocations_fields_defaults['gps_center'],
        'gps_type' => $getlocations_fields_defaults['gps_type'],
        'gps_zoom' => $getlocations_fields_defaults['gps_zoom'],
        'geocoder_enable' => $getlocations_fields_defaults['geocoder_enable'],
        'what3words_collect' => $getlocations_fields_defaults['what3words_collect'],
      ),
    ),
  );
  foreach ($getlocations_defaults['baselayers'] as $key => $layer) {
    $defaults['getlocations_fields']['settings']['baselayers'][$key] = $layer;
  }
  return $defaults;
}