function advpoll_clear_votes_confirm_form in Advanced Poll 7.3
Same name and namespace in other branches
- 6.3 advpoll.module \advpoll_clear_votes_confirm_form()
- 6 advpoll.module \advpoll_clear_votes_confirm_form()
- 6.2 advpoll.module \advpoll_clear_votes_confirm_form()
- 7 includes/advpoll.pages.inc \advpoll_clear_votes_confirm_form()
- 7.2 includes/advpoll.pages.inc \advpoll_clear_votes_confirm_form()
Displays a clear votes confirmation form.
1 string reference to 'advpoll_clear_votes_confirm_form'
- advpoll_clear_votes_page in includes/
advpoll.pages.inc - Page callback for clearing votes.
File
- includes/
advpoll.pages.inc, line 433 - Advanced Poll Pages Include.
Code
function advpoll_clear_votes_confirm_form($form, &$form_state, $nid, $title) {
$form = array();
$form['#nid'] = $nid;
$confirm_question = t('Are you sure you want to clear all votes for %title?', array(
'%title' => $title,
));
$form['question'] = array(
'#value' => '<h2>' . $confirm_question . '</h2>',
);
$form = confirm_form($form, $confirm_question, 'node/' . $nid . '/admin/votes', t('This will delete all votes that have been cast for %title.', array(
'%title' => $title,
)), t('Clear all votes'), t('Cancel'));
unset($form['#theme']);
return $form;
}