You are here

function poll_cancel_form in Drupal 5

Same name and namespace in other branches
  1. 6 modules/poll/poll.module \poll_cancel_form()
  2. 7 modules/poll/poll.module \poll_cancel_form()
1 string reference to 'poll_cancel_form'
theme_poll_results in modules/poll/poll.module

File

modules/poll/poll.module, line 448
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_cancel_form($nid) {
  $form['#action'] = url("poll/cancel/{$nid}");
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel your vote'),
  );
  return $form;
}