diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-09 18:53:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-09 18:53:22 +0000 |
commit | 1a5fcacdd9d6831a01d8eab8f49674c59c25cb80 (patch) | |
tree | 058d3837d5609f0e26442f38b3e35fe7305d1d36 /modules/throttle | |
parent | 928527538757cffbaaee811d06ae7b6a99f2afe4 (diff) | |
download | brdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.gz brdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.bz2 |
- Committed part 3 of Michael's help system improvements: removed the $help
parameter from the menu() function.
Diffstat (limited to 'modules/throttle')
-rw-r--r-- | modules/throttle/throttle.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module index dd11a0dfb..ebc44dc18 100644 --- a/modules/throttle/throttle.module +++ b/modules/throttle/throttle.module @@ -9,7 +9,7 @@ function throttle_perm() { return array("access throttle box"); } -function throttle_help($section = "admin/throttle/help") { +function throttle_help($section = "admin/help#throttle") { switch ($section) { case "admin/system/modules#description": @@ -17,7 +17,7 @@ function throttle_help($section = "admin/throttle/help") { break; case "admin/system/modules/throttle": return t("If your site gets popular, or comes under a \"Denial of Service\" (DOS) attack, your hardware might become overwhelmed. These settings allow you to \"slow down\" the access to your site. To use throttle you need to have the %access enabled. For Drupal to preform throttling it needs to do an extra database query. This extra query happens on page displays. <b>Auto-throttle probability limiter</b> tells Drupal to do this extra DB query once every \"x\" page displays, where \"x\" is the percentage. So if it is set to 10%, the default, then for every 100 web pages it displays, it will preform the extra query ten time. ", array("%access" => l(t("access log"), "admin/system/modules/statistics"))); - case "admin/throttle/help": + case "admin/help#throttle": $output .= "<h3>Introduction</h3><p>This Drupal module allows you to enable and configure the auto-throttle congestion control mechanism offered by the %stats-mod. The auto-throttle mechanism allows your site to automatically adapt to different server levels.</p>"; $output .= "<p>This module also adds a block that displays the current status of the throttle. You must have \"%throttle-block\" privileges to view the block. As a general rule of thumb, only site administrators should be granted access to this block.</p>"; $output .= "<p>The auto-throttle mechanism performs an extra database query in order to determine what the current throttle level should be. Fortunately the throttle can be tuned so these database queries only occur on a fraction of all pages geenrated by your site, reducing the overhead to an insignificant amount. Additionally, when the top-most throttle level is reached, all throttle queries are suspended for a configurable period of time. More detail follows.</p>"; |