function advpoll_clear_votes_form in Advanced Poll 6
Same name and namespace in other branches
- 6.3 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()
- 7.2 includes/advpoll.pages.inc \advpoll_clear_votes_form()
Minimal clear votes form for the votes tab.
1 string reference to 'advpoll_clear_votes_form'
- advpoll_votes_page in ./
advpoll.pages.inc - Display the votes page.
File
- ./
advpoll.module, line 1140 - Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
Code
function advpoll_clear_votes_form(&$form_state, $nid) {
$form = array();
$form['reset'] = array(
'#value' => t('Clear all votes'),
'#type' => 'submit',
);
$form['#redirect'] = 'node/' . $nid . '/votes/clear';
return $form;
}