function poll_results in Drupal 5
Same name and namespace in other branches
- 4 modules/poll.module \poll_results()
- 6 modules/poll/poll.pages.inc \poll_results()
- 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/ poll.module - Implementation of hook_menu().
File
- modules/
poll/ poll.module, line 472 - 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();
}
}