| 1 |
<?php |
<?php |
| 2 |
// $Id: globalredirect_admin.module,v 1.1.2.3 2008/09/14 23:16:33 njt1982 Exp $ |
// $Id: globalredirect_admin.module,v 1.1.2.4 2008/12/22 11:22:22 njt1982 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 43 |
'#default_value' => variable_get('globalredirect_deslash', GLOBALREDIRECT_DESLASH_ENABLED), |
'#default_value' => variable_get('globalredirect_deslash', GLOBALREDIRECT_DESLASH_ENABLED), |
| 44 |
); |
); |
| 45 |
|
|
|
|
|
| 46 |
$form['globalredirect_nonclean2clean'] = array( |
$form['globalredirect_nonclean2clean'] = array( |
| 47 |
'#type' => 'radios', |
'#type' => 'radios', |
| 48 |
'#title' => t('Non-clean to Clean'), |
'#title' => t('Non-clean to Clean'), |
| 66 |
'#default_value' => variable_get('globalredirect_trailingzero', GLOBALREDIRECT_FEATURE_DISABLED), |
'#default_value' => variable_get('globalredirect_trailingzero', GLOBALREDIRECT_FEATURE_DISABLED), |
| 67 |
); |
); |
| 68 |
|
|
| 69 |
|
$form['globalredirect_case_sensitive_urls'] = array( |
| 70 |
|
'#type' => 'radios', |
| 71 |
|
'#title' => t('Case Sensitive URLs'), |
| 72 |
|
'#description' => t('If enabled, the module will compare the current URL to the alias stored in the system. If there are any differences in case then the user will be redirected to the correct URL.'), |
| 73 |
|
'#options' => array( |
| 74 |
|
GLOBALREDIRECT_FEATURE_DISABLED => t('Off'), |
| 75 |
|
GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED => t('On'), |
| 76 |
|
), |
| 77 |
|
'#default_value' => variable_get('globalredirect_case_sensitive_urls', GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED), |
| 78 |
|
); |
| 79 |
|
|
| 80 |
return system_settings_form($form); |
return system_settings_form($form); |
| 81 |
} |
} |