summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-27 12:54:01 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-27 12:54:01 +0000
commitf8534504b3e14dbc76d7287a2e03ab948e9be87a (patch)
treeb951390866c01801f8b94819e6c6b91cc00b2c58 /modules/system
parentf2f3416549391ce0102c193abcea3fdd5d1d98ef (diff)
downloadbrdo-f8534504b3e14dbc76d7287a2e03ab948e9be87a.tar.gz
brdo-f8534504b3e14dbc76d7287a2e03ab948e9be87a.tar.bz2
- Patch #80895 by webchick et al: make it easier to disable form elements.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 045d09b5e..b9dfe9b13 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -538,7 +538,7 @@ function system_clean_url_settings() {
if (!variable_get('clean_url', 0)) {
if (strpos(request_uri(), '?q=') !== FALSE) {
$form['clean_url']['#description'] .= t(' Before enabling clean URLs, you must perform a test to determine if your server is properly configured. If you are able to see this page again after clicking the "Run the clean URL test" link, the test has succeeded and the radio buttons above will be available. If instead you are directed to a "Page not found" error, you will need to change the configuration of your server. The <a href="@handbook">handbook page on Clean URLs</a> has additional troubleshooting information. !run-test', array('@handbook' => 'http://drupal.org/node/15365', '!run-test' => '<a href ="'. base_path() . 'admin/settings/clean-urls">'. t('Run the clean URL test') .'</a>'));
- $form['clean_url']['#attributes'] = array('disabled' => 'disabled');
+ $form['clean_url']['#disabled'] = TRUE;
}
else {
$form['clean_url']['#description'] .= t(' You have successfully demonstrated that clean URLs work on your server. You are welcome to enable/disable them as you wish.');
@@ -1413,7 +1413,7 @@ function system_theme_settings($key = '') {
// disable search box if search.module is disabled
$form['theme_settings'][$name] = array('#type' => 'checkbox', '#title' => $title, '#default_value' => $settings[$name]);
if (isset($disabled[$name])) {
- $form['theme_settings'][$name]['#attributes'] = array('disabled' => 'disabled');
+ $form['theme_settings'][$name]['#disabled'] = TRUE;
}
}
}