function advpoll_cancel_vote_form in Advanced Poll 7.2
Same name and namespace in other branches
- 7.3 advpoll.module \advpoll_cancel_vote_form()
- 7 advpoll.module \advpoll_cancel_vote_form()
1 string reference to 'advpoll_cancel_vote_form'
File
- ./
advpoll.module, line 740
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;
}