You are here

function poll_results in Drupal 7

Same name and namespace in other branches
  1. 4 modules/poll.module \poll_results()
  2. 5 modules/poll/poll.module \poll_results()
  3. 6 modules/poll/poll.pages.inc \poll_results()

Callback for the 'results' tab for polls you can vote on

1 string reference to 'poll_results'
poll_menu in modules/poll/poll.module
Implements hook_menu().

File

modules/poll/poll.pages.inc, line 93
User page callbacks for the poll module.

Code

function poll_results($node) {
  drupal_set_title($node->title);
  $node->show_results = TRUE;
  return node_show($node);
}