Commit 1b733dc9 authored by Dries's avatar Dries

- Fix blocks of throttle and queue module.  Patch by Gerhard.
parent 1d63fec8
......@@ -198,14 +198,12 @@ function queue_block($op = "list", $delta = 0) {
}
}
$block[0]["subject"] = t("Moderation results");
$block[0]["content"] = $output ? $output : t("This node has not been moderated yet.");
$block[0]["info"] = t("Moderation results");
$block["subject"] = t("Moderation results");
$block["content"] = $output ? $output : t("This node has not been moderated yet.");
}
}
elseif ((user_access("access submission queue") || user_access("administer blocks")) && (substr_count(request_uri(), drupal_url(array("mod" => "user"), "module")) || substr_count(request_uri(), drupal_url(array(), "admin")))) {
$block[0]["subject"] = t("Moderation results");
$block[0]["info"] = t("Moderation results");
$block["subject"] = t("Moderation results");
}
return $block;
......
......@@ -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;
}
}
?>
......@@ -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;
}
}
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment