function advpoll_clear_votes_confirm_form in Advanced Poll 7.2
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.3 includes/advpoll.pages.inc \advpoll_clear_votes_confirm_form()
- 7 includes/advpoll.pages.inc \advpoll_clear_votes_confirm_form()
Display a clear votes confirmation form.
1 string reference to 'advpoll_clear_votes_confirm_form'
- advpoll_clear_votes_page in includes/
advpoll.pages.inc
File
- includes/
advpoll.pages.inc, line 344
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;
}