function 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 modules/
poll/ poll.module - Preprocess the poll_results theme hook.
File
-
modules/
poll/ poll.module, line 936
Code
function poll_cancel_form($form, &$form_state, $nid) {
$form_state['cache'] = TRUE;
// Store the nid so we can get to it in submit functions.
$form['#nid'] = $nid;
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Cancel your vote'),
'#submit' => array(
'poll_cancel',
),
);
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.