summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-15 15:58:20 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-15 15:58:20 +0000
commitd9cb4522bd0f445eef49316a5c9dd798e2803754 (patch)
tree8bfbeb2c292df21f15252ae47c631ec026934c13 /modules/poll.module
parent7e60456ca98e9faa12fcf2ea56ee57f31c6450af (diff)
downloadbrdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.gz
brdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.bz2
- Book module improvements. This commit changes the behavior of the "view"
hook. See mailing list for details; search for a mail with the subject: '[IMPORTANT] behavior of "view" hook changed'. Modified patch from Nick.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/poll.module b/modules/poll.module
index a9a057478..bdf7a2ea1 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -54,7 +54,7 @@ function poll_block($op = "list", $delta = 0) {
$poll = node_load(array("type" => "poll", "created" => $timestamp, "moderate" => "0", "status" => "1"));
if ($poll->nid) {
// Poll_view dumps the output into $poll->body
- poll_view($poll, 1, 1);
+ poll_view($poll, 1, 0, 1);
}
}
$block["subject"] = t("Poll: %t", array("%t" => $poll->title));
@@ -325,7 +325,7 @@ function poll_view_processvote(&$node) {
}
}
-function poll_view(&$node, $main = 0, $block = 0) {
+function poll_view(&$node, $main = 0, $return = 0, $block = 0) {
global $user;
/*
@@ -361,7 +361,7 @@ function poll_view(&$node, $main = 0, $block = 0) {
// We also use poll_view() for the side-block
if (!$block) {
- theme("node", $node, $main);
+ return $node;
}
}