From 1b733dc98aaeb20d250414acc6bf428c7868d013 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 27 Nov 2002 18:43:49 +0000 Subject: - Fix blocks of throttle and queue module. Patch by Gerhard. --- modules/throttle/throttle.module | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'modules/throttle/throttle.module') 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; + } } ?> -- cgit v1.2.3