You are here

function advpoll_cancel_form in Advanced Poll 6

Same name and namespace in other branches
  1. 5 advpoll.module \advpoll_cancel_form()
  2. 6.3 advpoll.module \advpoll_cancel_form()
  3. 6.2 advpoll.module \advpoll_cancel_form()

Helper function to display 'cancel vote' button if user has voted.

1 string reference to 'advpoll_cancel_form'
_advpoll_show_cancel_form in ./advpoll.module

File

./advpoll.module, line 1013
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.

Code

function advpoll_cancel_form(&$form_state, $nid) {
  $form['#action'] = url('advpoll/cancel/' . $nid);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel your vote'),
  );
  return $form;
}