You are here

function legacy_gmap_get_key in GMap Module 7.2

Retrieve the Google Maps key that is in use for the site.

1 call to legacy_gmap_get_key()
legacy__gmap_base_js in tests/inc/gmap_defaults.inc
Adds the basic js files needed for a GMap.

File

tests/inc/gmap_defaults.inc, line 139
Contains gmap_defaults.inc

Namespace

tests\inc

Code

function legacy_gmap_get_key() {
  $key = variable_get('gmap_api_key', FALSE);
  if (module_exists('keys_api')) {
    $key = keys_api_get_key('gmap', $_SERVER['HTTP_HOST']);
  }
  elseif (module_exists('keys')) {
    $key = keys_get_key('google_maps');
  }
  return $key;
}