function advpoll_results in Advanced Poll 5
Callback for results tab.
1 string reference to 'advpoll_results'
- advpoll_menu in ./
advpoll.module - Implementation of hook_menu().
File
- ./
advpoll.module, line 1299 - Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
Code
function advpoll_results() {
if ($node = node_load(arg(1))) {
drupal_set_title(check_plain($node->title));
return node_show($node, 0);
}
else {
// The url does not provide the appropriate node id.
drupal_not_found();
}
}