function poll_cancel_form
Same name and namespace in other branches
- 7.x drupal-7.x/modules/poll/poll.module \poll_cancel_form()
Builds the cancel form for a poll.
See also
Related topics
1 string reference to 'poll_cancel_form'
- template_preprocess_poll_results in drupal-6.x/
modules/ poll/ poll.module - Preprocess the poll_results theme hook.
Archivo
- drupal-6.x/
modules/ poll/ poll.module, line 741 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Código
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;
}