function advpoll_cancel_form in Advanced Poll 6
Same name and namespace in other branches
- 5 advpoll.module \advpoll_cancel_form()
- 6.3 advpoll.module \advpoll_cancel_form()
- 6.2 advpoll.module \advpoll_cancel_form()
Helper function to display 'cancel vote' button if user has voted.
1 string reference to 'advpoll_cancel_form'
File
- ./
advpoll.module, line 1013 - Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
Code
function advpoll_cancel_form(&$form_state, $nid) {
$form['#action'] = url('advpoll/cancel/' . $nid);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Cancel your vote'),
);
return $form;
}