poll_cancel_form
- Versions
- 5
poll_cancel_form($nid)- 6
poll_cancel_form(&$form_state, $nid)- 7
poll_cancel_form($form, &$form_state, $nid)
Builds the cancel form for a poll.
See also
Related topics
Code
modules/poll/poll.module, line 747
<?php
function poll_cancel_form(&$form_state, $nid) {
// Store the nid so we can get to it in submit functions.
$form['#nid'] = $nid;
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Cancel your vote'),
'#submit' => array('poll_cancel')
);
$form['#cache'] = TRUE;
return $form;
}
?>Login or register to post comments 