You are here

function gmap_views_protocol in GMap Module 7.2

Same name and namespace in other branches
  1. 7 gmap.module \gmap_views_protocol()

Determine the site protocol (http or https).

@todo move this to GmapRequest class

1 call to gmap_views_protocol()
gmap_geocode in ./gmap.module
Utility function to use the google maps geocoder server side.

File

./gmap.module, line 1508
GMap -- Routines to use the Google Maps API in Drupal.

Code

function gmap_views_protocol() {
  global $base_url;
  return parse_url($base_url, PHP_URL_SCHEME) == 'https' ? 'https' : 'http';
}