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

Diff of /contributions/modules/carto/carto.module

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

revision 1.21, Sun Oct 15 22:37:26 2006 UTC revision 1.22, Wed Nov 1 19:39:01 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: carto.module,v 1.20 2006/10/13 13:22:51 openwereld Exp $  // $Id: carto.module,v 1.21 2006/10/15 22:37:26 openwereld Exp $
3    
4  define( 'DEFAULT_WMS_SEARCH_FIELDS', 'name,title,keywords,abstract' );  define( 'DEFAULT_WMS_SEARCH_FIELDS', 'name,title,keywords,abstract' );
5  define( 'DEFAULT_CARTO_WMS_TEASER_MAP', 1 );  define( 'DEFAULT_CARTO_WMS_TEASER_MAP', 1 );
6    define( "DEFAULT_GOOGLEMAP_KEY", "ABQIAAAAaypyu9OS8HKVoRqCx3wW2BT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQWOIyCzqRypc-sQQZGpc-Mp-Jf7g" );
7    
8  /**  /**
9   * Implementation of hook_help().   * Implementation of hook_help().
# Line 312  function carto_admin_settings( ) Line 313  function carto_admin_settings( )
313          , '#maxlength' => 255          , '#maxlength' => 255
314          , '#description' => t('URI to base of MappingWidgets package (relative to %host).', array('%host' => $_SERVER['HTTP_HOST']) )          , '#description' => t('URI to base of MappingWidgets package (relative to %host).', array('%host' => $_SERVER['HTTP_HOST']) )
315          );          );
316      $value = variable_get( 'googlemap_api_key', '' );  
317      $form['mappingwidgets']['googlemap_api_key'] = array(      // show googlmap api key here only if gmap is not enabled
318          '#type' => 'textfield'      if( ! module_exists('gmap') )
319          , '#title' => t('Google map API key')      {
320          , '#default_value' => $value          $value = variable_get( 'googlemap_api_key', DEFAULT_GOOGLEMAP_KEY );
321          , '#size' => 80          $form['mappingwidgets']['googlemap_api_key'] = array(
322          , '#maxlength' => 255              '#type' => 'textfield'
323          );              , '#title' => t('Google map API key')
324                , '#default_value' => $value
325                , '#size' => 108
326                , '#maxlength' => 255
327                );
328        }
329    
330      $form['mappingwidgets']['info'] = array(      $form['mappingwidgets']['info'] = array(
331          '#type' => 'markup'          '#type' => 'markup'
332          , '#value' =>          , '#value' =>

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.2