You are here

function poll_results in Drupal 4

Same name and namespace in other branches
  1. 5 modules/poll/poll.module \poll_results()
  2. 6 modules/poll/poll.pages.inc \poll_results()
  3. 7 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.module
Implementation of hook_menu().

File

modules/poll.module, line 390
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_results() {
  if ($node = node_load(arg(1))) {
    drupal_set_title(check_plain($node->title));
    return node_show($node, 0);
  }
  else {
    drupal_not_found();
  }
}