You are here

function gmap_views_protocol in GMap Module 7

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

Determine the site protocol (http or https)

1 call to gmap_views_protocol()
gmap_geocode in ./gmap.module
Utility function to use the google maps geocoder server side. This is an easy, quick way to geocode a single address. Note: This is a REMOTE CALL TO GOOGLE. Do NOT use this where performance matters, as it could possibly take several seconds for this…

File

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

Code

function gmap_views_protocol() {
  return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
}