/[drupal]/contributions/modules/gmap/gmap.module
ViewVC logotype

Diff of /contributions/modules/gmap/gmap.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.51.2.179, Wed Mar 11 16:45:15 2009 UTC revision 1.51.2.180, Fri Apr 17 18:34:14 2009 UTC
# Line 1  Line 1 
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
# Line 795  function theme_gmap_align($element) { Line 795  function theme_gmap_align($element) {
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    

Legend:
Removed from v.1.51.2.179  
changed lines
  Added in v.1.51.2.180

  ViewVC Help
Powered by ViewVC 1.1.2