/[drupal]/contributions/modules/site_map/site_map.admin.inc
ViewVC logotype

Diff of /contributions/modules/site_map/site_map.admin.inc

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

revision 1.1.2.7.2.1, Tue Sep 22 18:56:47 2009 UTC revision 1.1.2.7.2.2, Tue Sep 29 05:07:34 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: site_map.admin.inc,v 1.1.2.7 2009/06/29 19:12:54 frjo Exp $  // $Id: site_map.admin.inc,v 1.1.2.7.2.1 2009/09/22 18:56:47 frjo Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 45  function site_map_admin_settings() { Line 45  function site_map_admin_settings() {
45      }      }
46    }    }
47    $form['site_map_content']['site_map_show_books'] = array(    $form['site_map_content']['site_map_show_books'] = array(
48      '#type' => 'select',      '#type' => 'checkboxes',
49      '#title' => t('Books to include in the site map'),      '#title' => t('Books to include in the site map'),
50      '#default_value' => variable_get('site_map_show_books', array()),      '#default_value' => variable_get('site_map_show_books', array()),
51      '#options' => $book_options,      '#options' => $book_options,
# Line 63  function site_map_admin_settings() { Line 63  function site_map_admin_settings() {
63    $menu_options = menu_get_menus();    $menu_options = menu_get_menus();
64    
65    $form['site_map_content']['site_map_show_menus'] = array(    $form['site_map_content']['site_map_show_menus'] = array(
66      '#type' => 'select',      '#type' => 'checkboxes',
67      '#title' => t('Menus to include in the site map'),      '#title' => t('Menus to include in the site map'),
68      '#default_value' => variable_get('site_map_show_menus', array()),      '#default_value' => variable_get('site_map_show_menus', array()),
69      '#options' => $menu_options,      '#options' => $menu_options,
# Line 83  function site_map_admin_settings() { Line 83  function site_map_admin_settings() {
83      }      }
84    }    }
85    $form['site_map_content']['site_map_show_vocabularies'] = array(    $form['site_map_content']['site_map_show_vocabularies'] = array(
86      '#type' => 'select',      '#type' => 'checkboxes',
87      '#title' => t('Categories to include in the site map'),      '#title' => t('Categories to include in the site map'),
88      '#default_value' => variable_get('site_map_show_vocabularies', array()),      '#default_value' => variable_get('site_map_show_vocabularies', array()),
89      '#options' => $vocab_options,      '#options' => $vocab_options,
90      '#multiple' => TRUE,      '#multiple' => TRUE,
91      '#description' => t('Ctrl-click (Windows) or Command-click (Mac) to select more than one value.'),      '#description' => t('Ctrl-click (Windows) or Command-click (Mac) to select more than one value.'),
92    );    );
   $form['site_map_content']['site_map_css'] = array(  
     '#type' => 'checkbox',  
     '#title' => t('Do not include site map CSS file'),  
     '#default_value' => variable_get('site_map_css', 0),  
     '#description' => t('If you don\'t want to load the included CSS file you can check this box.'),  
   );  
93    
94    $form['site_map_taxonomy_options'] = array(    $form['site_map_taxonomy_options'] = array(
95      '#type' => 'fieldset',      '#type' => 'fieldset',
# Line 156  function site_map_admin_settings() { Line 150  function site_map_admin_settings() {
150      '#description' => t('Specify how many subcategories should be included in the RSS feed. Enter "all" to include all subcategories or "0" to include no subcategories.'),      '#description' => t('Specify how many subcategories should be included in the RSS feed. Enter "all" to include all subcategories or "0" to include no subcategories.'),
151    );    );
152    
153      $form['site_map_css_options'] = array(
154        '#type' => 'fieldset',
155        '#title' => t('CSS settings'),
156      );
157      $form['site_map_css_options']['site_map_css'] = array(
158        '#type' => 'checkbox',
159        '#title' => t('Do not include site map CSS file'),
160        '#default_value' => variable_get('site_map_css', 0),
161        '#description' => t('If you don\'t want to load the included CSS file you can check this box.'),
162      );
163    
164      // Make use of the Checkall module if it's installed.
165      if (module_exists('checkall')) {
166        $form['site_map_content']['site_map_show_books']['#checkall'] = TRUE;
167        $form['site_map_content']['site_map_show_menus']['#checkall'] = TRUE;
168        $form['site_map_content']['site_map_show_vocabularies']['#checkall'] = TRUE;
169      }
170    
171    return system_settings_form($form);    return system_settings_form($form);
172  }  }

Legend:
Removed from v.1.1.2.7.2.1  
changed lines
  Added in v.1.1.2.7.2.2

  ViewVC Help
Powered by ViewVC 1.1.2