You are here

function _advpoll_show_cancel_form in Advanced Poll 5

Same name and namespace in other branches
  1. 6.3 advpoll.module \_advpoll_show_cancel_form()
  2. 6 advpoll.module \_advpoll_show_cancel_form()
  3. 6.2 advpoll.module \_advpoll_show_cancel_form()
1 call to _advpoll_show_cancel_form()
advpoll_view_results in ./advpoll.module
Show results of the vote.

File

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

Code

function _advpoll_show_cancel_form($node) {
  $output = '';
  if ($node->voted && $node->cancel_vote && user_access('cancel own vote') && _advpoll_is_active($node)) {
    $output .= drupal_get_form('advpoll_cancel_form', $node->nid);
  }
  return $output;
}