| 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 |
| 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.'), |
| 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 |
|
|
| 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( |