function advpoll_clear_votes_page in Advanced Poll 6.2
Same name and namespace in other branches
- 6.3 advpoll.pages.inc \advpoll_clear_votes_page()
- 6 advpoll.pages.inc \advpoll_clear_votes_page()
- 7.3 includes/advpoll.pages.inc \advpoll_clear_votes_page()
- 7 includes/advpoll.pages.inc \advpoll_clear_votes_page()
- 7.2 includes/advpoll.pages.inc \advpoll_clear_votes_page()
Custom page to handle confirmation of clearing all votes.
1 string reference to 'advpoll_clear_votes_page'
- advpoll_menu in ./
advpoll.module - Implementation of hook_menu().
File
- ./
advpoll.pages.inc, line 61 - Page callbacks for the advpoll module.
Code
function advpoll_clear_votes_page($node) {
// Add the votes tab to the menu.
$breadcrumb = drupal_get_breadcrumb();
$breadcrumb[] = l(t('Votes'), 'node/' . $node->nid . '/votes');
drupal_set_breadcrumb($breadcrumb);
$output = drupal_get_form('advpoll_clear_votes_confirm_form', $node->nid);
// Set the title after we get the form so we overwrite confirm_form()'s title.
drupal_set_title(check_plain($node->title));
return $output;
}