summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.module6
-rw-r--r--modules/poll/poll.pages.inc2
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 41cffc398..5152687df 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -524,7 +524,7 @@ function poll_delete($node) {
* An extra parameter that adapts the hook to display a block-ready
* rendering of the poll.
*/
-function poll_view($node, $teaser = FALSE, $page = FALSE, $block = FALSE) {
+function poll_view($node, $teaser = FALSE, $block = FALSE) {
global $user;
$output = '';
@@ -549,7 +549,7 @@ function poll_view($node, $teaser = FALSE, $page = FALSE, $block = FALSE) {
}
else {
$node->content['body'] = array(
- '#markup' => poll_view_results($node, $teaser, $page, $block),
+ '#markup' => poll_view_results($node, $teaser, $block),
);
}
return $node;
@@ -665,7 +665,7 @@ function template_preprocess_poll_vote(&$variables) {
/**
* Generates a graphical representation of the results of a poll.
*/
-function poll_view_results(&$node, $teaser, $page, $block) {
+function poll_view_results(&$node, $teaser, $block) {
// Count the votes and find the maximum
$total_votes = 0;
$max_votes = 0;
diff --git a/modules/poll/poll.pages.inc b/modules/poll/poll.pages.inc
index 7c2bd0c29..20a9179eb 100644
--- a/modules/poll/poll.pages.inc
+++ b/modules/poll/poll.pages.inc
@@ -53,5 +53,5 @@ function poll_votes($node) {
function poll_results($node) {
drupal_set_title($node->title);
$node->show_results = TRUE;
- return node_show($node, 0);
+ return node_show($node);
}