You are here

function getlocations_fields_field_formatter_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_formatter_info_defaults()

Return value

array $defaults Settings for the Field formatter

2 calls to getlocations_fields_field_formatter_info_defaults()
getlocations_fields_field_formatter_info in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_info().
getlocations_fields_field_formatter_view in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.

File

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

Code

function getlocations_fields_field_formatter_info_defaults() {
  $getlocations_defaults = getlocations_defaults();
  $getlocations_fields_defaults = getlocations_fields_defaults();
  $defaults = array(
    'display_mapwidth' => $getlocations_defaults['width'],
    'display_mapheight' => $getlocations_defaults['height'],
    'display_showmap' => $getlocations_fields_defaults['display_showmap'],
    'display_maplink' => $getlocations_fields_defaults['display_maplink'],
    'display_latlong' => $getlocations_fields_defaults['display_latlong'],
    'display_dms' => $getlocations_fields_defaults['display_dms'],
    'display_geo_microformat' => $getlocations_fields_defaults['display_geo_microformat'],
    'display_onemap' => $getlocations_fields_defaults['display_onemap'],
    'what3words_display' => $getlocations_fields_defaults['what3words_display'],
    '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'],
    'sv_show' => $getlocations_defaults['sv_show'],
    'sv_showfirst' => $getlocations_fields_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'],
    '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'],
    'markeraction' => $getlocations_defaults['markeraction'],
    'markeractiontype' => $getlocations_defaults['markeractiontype'],
    'markeraction_click_zoom' => $getlocations_defaults['markeraction_click_zoom'],
    'markeraction_click_center' => $getlocations_defaults['markeraction_click_center'],
    'map_backgroundcolor' => $getlocations_defaults['map_backgroundcolor'],
    'show_maplinks' => $getlocations_defaults['show_maplinks'],
    'display_name' => $getlocations_fields_defaults['display_name'],
    'display_street' => $getlocations_fields_defaults['display_street'],
    'display_additional' => $getlocations_fields_defaults['display_additional'],
    'display_city' => $getlocations_fields_defaults['display_city'],
    'display_province' => $getlocations_fields_defaults['display_province'],
    'display_postal_code' => $getlocations_fields_defaults['display_postal_code'],
    'display_country' => $getlocations_fields_defaults['display_country'],
    'display_phone' => $getlocations_fields_defaults['display_phone'],
    'display_mobile' => $getlocations_fields_defaults['display_mobile'],
    'display_fax' => $getlocations_fields_defaults['display_fax'],
    'country_full' => $getlocations_fields_defaults['country_full'],
    'per_item_marker' => $getlocations_fields_defaults['per_item_marker'],
    'nodezoom' => $getlocations_fields_defaults['nodezoom'],
    'minzoom_map' => $getlocations_defaults['minzoom_map'],
    'maxzoom_map' => $getlocations_defaults['maxzoom_map'],
    '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'],
    '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'],
    'kml_group' => $getlocations_defaults['kml_group'],
    '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_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'],
    '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;
  }
  return $defaults;
}