summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 08:03:08 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 08:03:08 +0000
commit7c447cc8a587507d9ddc60be96f6f354f89cc876 (patch)
tree2e0fe1ba1592ab72b9a754a8f405daf243133741 /modules/system/system.module
parent58d1270a7db4d0cb44196daec318c017cbdfd2d7 (diff)
downloadbrdo-7c447cc8a587507d9ddc60be96f6f354f89cc876.tar.gz
brdo-7c447cc8a587507d9ddc60be96f6f354f89cc876.tar.bz2
#80804 by stefan nagtegaal. Add units for paths.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index ac6ae856b..4a9e79ecf 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -548,7 +548,9 @@ function system_site_information_settings() {
'#type' => 'textfield',
'#title' => t('Default front page'),
'#default_value' => variable_get('site_frontpage', 'node'),
- '#description' => t('The home page displays content from this relative URL. If you are not using clean URLs, specify the part after "<code>?q=</code>". If unsure, specify "node".')
+ '#size' => 40,
+ '#description' => t('The home page displays content from this relative URL. If unsure, specify "node".'),
+ '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
);
return system_settings_form($form);
@@ -584,14 +586,18 @@ function system_error_reporting_settings() {
'#type' => 'textfield',
'#title' => t('Default 403 (access denied) page'),
'#default_value' => variable_get('site_403', ''),
- '#description' => t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "<code>?q=</code>". If unsure, specify nothing.')
+ '#size' => 40,
+ '#description' => t('This page is displayed when the requested document is denied to the current user. If unsure, specify nothing.'),
+ '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
);
$form['site_404'] = array(
'#type' => 'textfield',
'#title' => t('Default 404 (not found) page'),
'#default_value' => variable_get('site_404', ''),
- '#description' => t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "<code>?q=</code>". If unsure, specify nothing.')
+ '#size' => 40,
+ '#description' => t('This page is displayed when no other content matches the requested document. If unsure, specify nothing.'),
+ '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q=')
);
$form['error_level'] = array(