summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module16
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/node.module b/modules/node.module
index d337687ad..8140914b1 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -670,14 +670,18 @@ function node_admin() {
}
}
-function node_block() {
+function node_block($op = "list", $delta = 0) {
global $theme;
+ if ($op == "list") {
+ $blocks[0]["info"] = t("Syndicate");
+ return $blocks;
+ }
+ else {
+ $block["subject"] = t("Syndicate");
+ $block["content"] = "<div align=\"center\">". lm("<img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"XML\" />", array("mod" => "node", "op" => "feed"), "", array("title" => t("Read the XML version of this page."))) ."</div>\n";
- $block[0][subject] = t("Syndicate");
- $block[0][content] = "<div align=\"center\">". lm("<img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" border=\"0\" alt=\"XML\" />", array("mod" => "node", "op" => "feed"), "", array("title" => t("Read the XML version of this page."))) ."</div>\n";
- $block[0][info] = "Syndicate";
-
- return $block;
+ return $block;
+ }
}
function node_feed($nodes = 0, $channel = array()) {