function advpoll_clear_votes_form in Advanced Poll 7.3
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 includes/advpoll.pages.inc \advpoll_clear_votes_form()
- 7.2 includes/advpoll.pages.inc \advpoll_clear_votes_form()
Clears votes form element for the vote display page.
2 string references to 'advpoll_clear_votes_form'
- advpoll_ranking_votes_page in advpoll_ranking/
advpoll_ranking.module - Display the overridden votes page.
- advpoll_votes_page in includes/
advpoll.pages.inc - Generates page for administering individual voters on a poll.
File
- includes/
advpoll.pages.inc, line 133 - Advanced Poll Pages Include.
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;
}