summaryrefslogtreecommitdiff
path: root/modules/throttle.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-01 10:17:34 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-01 10:17:34 +0000
commita8b218827a400cf5ced7db133be0a0f9e2180875 (patch)
treeef94631d313824ad89e204df283551c5c3bb3f53 /modules/throttle.module
parent3f4d18fafc2718a056be07b9bf3c51ecfa610f33 (diff)
downloadbrdo-a8b218827a400cf5ced7db133be0a0f9e2180875.tar.gz
brdo-a8b218827a400cf5ced7db133be0a0f9e2180875.tar.bz2
- Patch #26139 by webchick / Kieran / documentation team: improved admin help of core modules! /
Diffstat (limited to 'modules/throttle.module')
-rw-r--r--modules/throttle.module12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/throttle.module b/modules/throttle.module
index f1d1ce5e8..4c91dbb8b 100644
--- a/modules/throttle.module
+++ b/modules/throttle.module
@@ -108,6 +108,18 @@ function _throttle_validate($value, $form) {
*/
function throttle_help($section) {
switch ($section) {
+ case 'admin/help#throttle':
+ $output = '<p>'. t('The throttle module provides a congestion control throttling mechanism for automatically detecting a surge in incoming traffic. If the site gets linked to by a popular website, or otherwise comes under a "Denial of Service" (DoS) attack, your webserver might become overwhelmed. This mechanism is utilized by other modules to automatically optimize their performance by temporarily disabling CPU-intensive functionality. For example, in the site theme, you might choose to disable pictures when the site is too busy (reducing bandwidth), or in modules, you might choose to disable some complicated logic (reducing CPU utilization).') .'</p>';
+ $output .= '<p>'. t('The congestion control throttle can be automatically enabled when the number of anonymous users currently visiting the site exceeds the specified threshold. The congestion control throttle can be automatically enabled when the number of authenticated users currently visiting the site exceeds the specified threshold. ') .'</p>';
+ $output .= t('<p>You can</p>
+<ul>
+<li>enable throttle for modules at <a href="%admin-modules">administer &gt;&gt; module</a>.</li>
+<li>enable throttle for blocks at <a href="%admin-block">administer &gt;&gt; block</a>.</li>
+<li>administer throttle at <a href="%admin-settings-throttle">administer &gt;&gt; settings &gt;&gt; throttle</a>.</li>
+</ul>
+', array('%admin-modules' => url('admin/modules'), '%admin-block' => url('admin/block'), '%admin-settings-throttle' => url('admin/settings/throttle')));
+ $output .= '<p>'. t('For more information please read the configuration and customization handbook <a href="%throttle">Throttle page</a>.', array('%throttle' => 'http://www.drupal.org/handbook/modules/throttle/')) .'</p>';
+ return $output;
case 'admin/modules#description':
return t('Handles the auto-throttling mechanism, to control site congestion.');
case 'admin/settings/throttle':