function advpoll_clear_votes_form in Advanced Poll 7.2
Same name and namespace in other branches
- 6.3 advpoll.module \advpoll_clear_votes_form()
- 6 advpoll.module \advpoll_clear_votes_form()
- 6.2 advpoll.module \advpoll_clear_votes_form()
- 7.3 includes/advpoll.pages.inc \advpoll_clear_votes_form()
- 7 includes/advpoll.pages.inc \advpoll_clear_votes_form()
2 string references to 'advpoll_clear_votes_form'
- advpoll_ranking_votes_page in advpoll_ranking/
advpoll_ranking.module - Display the overridden votes page. Uses almost the same output but allows grouping for borda and instant-runoff.
- advpoll_votes_page in includes/
advpoll.pages.inc
File
- includes/
advpoll.pages.inc, line 104
Code
function advpoll_clear_votes_form($form, &$form_state) {
$nid = (int) check_plain(arg(1));
$form['reset'] = array(
'#value' => t('Clear all votes'),
'#type' => 'submit',
);
$form['#action'] = url('node/' . $nid . '/advpoll/votes/clear');
return $form;
}