/[drupal]/contributions/modules/mappingkit/mapclient/mapclient.admin.inc
ViewVC logotype

Diff of /contributions/modules/mappingkit/mapclient/mapclient.admin.inc

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

revision 1.1.2.4, Fri Aug 29 18:54:00 2008 UTC revision 1.1.2.5, Mon Sep 1 06:34:39 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: mapclient.admin.inc,v 1.1.2.3 2008/07/22 22:16:55 openwereld Exp $  // $Id: mapclient.admin.inc,v 1.1.2.4 2008/08/29 18:54:00 openwereld Exp $
3    
4  /**  /**
5   * Generate form for map client settings.   * Generate form for map client settings.
# Line 7  Line 7 
7   */   */
8  function mapclient_settings_form() {  function mapclient_settings_form() {
9    
10      $form['locations'] = array(
11        '#type' => 'fieldset'
12        , '#title' => t('Locations')
13        , '#collapsible' => TRUE
14        );
15      $form['locations']['user_location_map_context'] = array('#type' => 'textfield'
16        , '#title' => t('User location map context')
17        , '#default_value' => variable_get('user_location_map_context', '')
18        , '#description' => t('Specify the map context to be used to pick a location for a user. Type a character to search for available map contexts.')
19        , '#autocomplete_path' => 'mappingkit/mapcontext/autocomplete'
20        );
21      $form['locations']['node_location_map_context'] = array('#type' => 'textfield'
22        , '#title' => t('Node location map context')
23        , '#default_value' => variable_get('node_location_map_context', '')
24        , '#description' => t('Specify the map context to be used to pick a location for a node.')
25        , '#autocomplete_path' => 'mappingkit/mapcontext/autocomplete'
26        );
27    
28    $mapclients = module_invoke_all('mapclient');    $mapclients = module_invoke_all('mapclient');
29    $options = array();    $options = array();
30    foreach ($mapclients as $client => $info) {    foreach ($mapclients as $client => $info) {
# Line 54  function mapclient_settings_form() { Line 72  function mapclient_settings_form() {
72      , '#default_value' => variable_get('mapclient_layers_separator', ',')      , '#default_value' => variable_get('mapclient_layers_separator', ',')
73      );      );
74    
   $form['locations'] = array(  
     '#type' => 'fieldset'  
     , '#title' => t('Locations')  
     , '#collapsible' => TRUE  
     );  
   $form['locations']['user_location_map_context'] = array('#type' => 'textfield'  
     , '#title' => t('User location map context')  
     , '#default_value' => variable_get('user_location_map_context', '')  
     , '#description' => t('Specify the map context to be used to pick a location for a user.')  
     , '#autocomplete_path' => 'mappingkit/mapcontext/autocomplete'  
     );  
   $form['locations']['node_location_map_context'] = array('#type' => 'textfield'  
     , '#title' => t('Node location map context')  
     , '#default_value' => variable_get('node_location_map_context', '')  
     , '#description' => t('Specify the map context to be used to pick a location for a node.')  
     , '#autocomplete_path' => 'mappingkit/mapcontext/autocomplete'  
     );  
   
75    $form['google'] = array('#type' => 'fieldset'    $form['google'] = array('#type' => 'fieldset'
76      , '#title' => t('Google Maps')      , '#title' => t('Google Maps')
77      , '#collapsible' => TRUE      , '#collapsible' => TRUE

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2