| 1 |
<?php |
<?php |
| 2 |
// $Id: gmap.module,v 1.51.2.178 2009/02/13 00:01:51 bdragon Exp $ |
// $Id: gmap.module,v 1.51.2.179 2009/03/11 16:45:15 bdragon Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 795 |
* Gmap element theme hook |
* Gmap element theme hook |
| 796 |
*/ |
*/ |
| 797 |
function theme_gmap($element) { |
function theme_gmap($element) { |
| 798 |
|
// Usability: Prevent js errors on first visit to settings page, etc. |
| 799 |
|
// Of course it will still error if the *wrong* key is on file. |
| 800 |
|
if (gmap_get_key() == '') { |
| 801 |
|
return t('Unable to render map: Google Maps API key is missing.'); |
| 802 |
|
} |
| 803 |
|
|
| 804 |
// Track the mapids we've used already. |
// Track the mapids we've used already. |
| 805 |
static $mapids = array(); |
static $mapids = array(); |
| 806 |
|
|