| 1 |
<?php |
<?php |
| 2 |
// $Id: gmap.module,v 1.99 2009/02/12 23:45:23 bdragon Exp $ |
// $Id: gmap.module,v 1.100 2009/03/11 16:43:02 bdragon Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 832 |
* Gmap element theme hook |
* Gmap element theme hook |
| 833 |
*/ |
*/ |
| 834 |
function theme_gmap($element) { |
function theme_gmap($element) { |
| 835 |
|
// Usability: Prevent js errors on first visit to settings page, etc. |
| 836 |
|
// Of course it will still error if the *wrong* key is on file. |
| 837 |
|
if (gmap_get_key() == '') { |
| 838 |
|
return t('Unable to render map: Google Maps API key is missing.'); |
| 839 |
|
} |
| 840 |
|
|
| 841 |
// Track the mapids we've used already. |
// Track the mapids we've used already. |
| 842 |
static $mapids = array(); |
static $mapids = array(); |
| 843 |
|
|