summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-03 19:11:14 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-03 19:11:14 +0000
commit096058ac66ada549ba6b630a6beeef8ba5084f10 (patch)
tree575f6ddefc4aefa8a1e71144389a19dd4b46c14c
parent435f3154f9c347f35a4685d6456b9aded4171bc2 (diff)
downloadbrdo-096058ac66ada549ba6b630a6beeef8ba5084f10.tar.gz
brdo-096058ac66ada549ba6b630a6beeef8ba5084f10.tar.bz2
- Patch #33334 by ChrisKennedy and wulf: admin/modules links to 'throttle configuration page' even when it is disabled.
-rw-r--r--modules/system/system.module9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 8d01bd14b..710f5894c 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -43,8 +43,13 @@ function system_help($path, $arg) {
case 'admin/build/themes/settings':
return '<p>'. t('These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.') .'</p>';
case 'admin/build/modules':
- return t('<p>Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Click on the name of the module in the navigation menu for their individual configuration pages. Once a module is enabled, new <a href="@permissions">permissions</a> might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle. The auto-throttle functionality must be enabled on the <a href="@throttle">throttle configuration page</a> after having enabled the throttle module.</p>
-<p>It is important that <a href="@update-php">update.php</a> is run every time a module is updated to a newer version.</p><p>You can find all administration tasks belonging to a particular module on the <a href="@by-module">administration by module page</a>.</p>', array('@permissions' => url('admin/user/access'), '@throttle' => url('admin/settings/throttle'), '@update-php' => $base_url .'/update.php', '@by-module' => url('admin/by-module')));
+ $output = '<p>'. t('Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Once a module is enabled, new <a href="@permissions">permissions</a> might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle.', array('@permissions' => url('admin/user/access')));
+ if (module_exists('throttle')) {
+ $output .= ' '. t('The auto-throttle functionality must be enabled on the <a href="@throttle">throttle configuration page</a> after having enabled the throttle module.', array('@throttle' => url('admin/settings/throttle')));
+ }
+ $output .= '</p>';
+ $output .= t('<p>It is important that <a href="@update-php">update.php</a> is run every time a module is updated to a newer version.</p><p>You can find all administration tasks belonging to a particular module on the <a href="@by-module">administration by module page</a>.</p>', array('@update-php' => $base_url .'/update.php', '@by-module' => url('admin/by-module')));
+ return $output;
case 'admin/build/modules/uninstall':
return '<p>'. t('The uninstall process removes all data related to a module. To uninstall a module, you must first disable it. Not all modules support this feature.') .'</p>';
case 'admin/logs/status':