function advpoll_cancel_vote_form in Advanced Poll 7.3
Same name and namespace in other branches
- 7 advpoll.module \advpoll_cancel_vote_form()
- 7.2 advpoll.module \advpoll_cancel_vote_form()
Form element for canceling votes.
1 string reference to 'advpoll_cancel_vote_form'
- advpoll_display_results in ./
advpoll.module - Determines how to theme poll results.
File
- ./
advpoll.module, line 827
Code
function advpoll_cancel_vote_form($form, &$form_state, $nid) {
$form['#nid'] = $nid;
$form['submit'] = array(
'#type' => 'submit',
'#ajax' => array(
'callback' => 'advpoll_cancel_vote_submit',
'wrapper' => 'advpoll-' . $nid,
'name' => 'submit1',
),
'#value' => t('Cancel your vote'),
);
return $form;
}