/[drupal]/contributions/modules/globalredirect/globalredirect_admin/globalredirect_admin.module
ViewVC logotype

Diff of /contributions/modules/globalredirect/globalredirect_admin/globalredirect_admin.module

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

revision 1.1.2.3, Sun Sep 14 23:16:33 2008 UTC revision 1.1.2.4, Mon Dec 22 11:22:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: globalredirect_admin.module,v 1.1.2.2 2008/09/05 15:55:22 njt1982 Exp $  // $Id: globalredirect_admin.module,v 1.1.2.3 2008/09/14 23:16:33 njt1982 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 32  function globalredirect_admin_menu($may_ Line 32  function globalredirect_admin_menu($may_
32  function globalredirect_admin_settings() {  function globalredirect_admin_settings() {
33    $form = array();    $form = array();
34    
35    $form['globalredirect_deslah'] = array(    $form['globalredirect_deslash'] = array(
36      '#type' => 'radios',      '#type' => 'radios',
37      '#title' => t('Deslash'),      '#title' => t('Deslash'),
38      '#description' => t('If enabled, this option will remove the trailing slash from requests. This stops requests such as <code>example.com/node/1/</code> failing to match the corresponding alias and can cause duplicate content. On the other hand, if you require certain requests to have a trailing slash, this feature can cause problems so may need to be disabled.'),      '#description' => t('If enabled, this option will remove the trailing slash from requests. This stops requests such as <code>example.com/node/1/</code> failing to match the corresponding alias and can cause duplicate content. On the other hand, if you require certain requests to have a trailing slash, this feature can cause problems so may need to be disabled.'),
# Line 40  function globalredirect_admin_settings() Line 40  function globalredirect_admin_settings()
40        GLOBALREDIRECT_FEATURE_DISABLED => t('Off'),        GLOBALREDIRECT_FEATURE_DISABLED => t('Off'),
41        GLOBALREDIRECT_DESLASH_ENABLED  => t('On'),        GLOBALREDIRECT_DESLASH_ENABLED  => t('On'),
42      ),      ),
43      '#default_value' => variable_get('globalredirect_deslah', 1),      '#default_value' => variable_get('globalredirect_deslash', GLOBALREDIRECT_DESLASH_ENABLED),
44    );    );
45    
46    
# Line 52  function globalredirect_admin_settings() Line 52  function globalredirect_admin_settings()
52        GLOBALREDIRECT_FEATURE_DISABLED => t('Off'),        GLOBALREDIRECT_FEATURE_DISABLED => t('Off'),
53        GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED  => t('On'),        GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED  => t('On'),
54      ),      ),
55      '#default_value' => variable_get('globalredirect_nonclean2clean', 1),      '#default_value' => variable_get('globalredirect_nonclean2clean', GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED),
56    );    );
57    
58    $form['globalredirect_trailingzero'] = array(    $form['globalredirect_trailingzero'] = array(

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

  ViewVC Help
Powered by ViewVC 1.1.2