You are here

function advpoll_clear_votes_form in Advanced Poll 7

Same name and namespace in other branches
  1. 6.3 advpoll.module \advpoll_clear_votes_form()
  2. 6 advpoll.module \advpoll_clear_votes_form()
  3. 6.2 advpoll.module \advpoll_clear_votes_form()
  4. 7.3 includes/advpoll.pages.inc \advpoll_clear_votes_form()
  5. 7.2 includes/advpoll.pages.inc \advpoll_clear_votes_form()
2 string references to 'advpoll_clear_votes_form'
advpoll_ranking_votes_page in advpoll_ranking/advpoll_ranking.module
Display the overridden votes page. Uses almost the same output but allows grouping for borda and instant-runoff.
advpoll_votes_page in includes/advpoll.pages.inc

File

includes/advpoll.pages.inc, line 97

Code

function advpoll_clear_votes_form($form, &$form_state) {
  $nid = (int) check_plain(arg(1));
  $form['reset'] = array(
    '#value' => t('Clear all votes'),
    '#type' => 'submit',
  );
  $form['#action'] = url('node/' . $nid . '/advpoll/votes/clear');
  return $form;
}