function advpoll_results_page in Advanced Poll 7.2
Same name and namespace in other branches
- 6.3 advpoll.pages.inc \advpoll_results_page()
- 6 advpoll.pages.inc \advpoll_results_page()
- 6.2 advpoll.pages.inc \advpoll_results_page()
- 7.3 includes/advpoll.pages.inc \advpoll_results_page()
- 7 includes/advpoll.pages.inc \advpoll_results_page()
1 string reference to 'advpoll_results_page'
- advpoll_menu in ./
advpoll.module - Implements hook_menu()
File
- includes/
advpoll.pages.inc, line 613
Code
function advpoll_results_page($node) {
drupal_add_css(drupal_get_path('module', 'advpoll') . '/css/advpoll.css', array(
'group' => CSS_DEFAULT,
'every_page' => TRUE,
));
$data = advpoll_get_data($node);
$output = '';
if ($node) {
$output = advpoll_display_results($node->nid, $data);
}
return $output;
}