summaryrefslogtreecommitdiff
path: root/modules/throttle/throttle.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/throttle/throttle.module')
-rw-r--r--modules/throttle/throttle.module17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index bc3574b5e..b5481824e 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -142,13 +142,16 @@ function throttle_display_throttle_block() {
}
/* Block hook */
-function throttle_block() {
-
- $block[0]["subject"] = "Throttle status";
- $block[0]["content"] = throttle_display_throttle_block();
- $block[0]["info"] = "Throttle status";
-
- return $block;
+function throttle_block($op = "list", $delta = 0) {
+ if ($op == "list") {
+ $blocks[0]["info"] = t("Throttle status");
+ return $blocks;
+ }
+ else {
+ $block["subject"] = t("Throttle status");
+ $block["content"] = throttle_display_throttle_block();
+ return $block;
+ }
}
?>