You are here

function theme_advpoll_results in Advanced Poll 6

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

File

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

Code

function theme_advpoll_results($title, $results, $votes, $links, $nid, $voted, $cancel_vote) {
  $output = '<div class="poll">';
  if ($results) {
    $output .= $results;
    $output .= '<div class="total">' . t('Total voters: %votes', array(
      '%votes' => $votes,
    )) . '</div>';
  }
  else {
    $output .= '<p class="message">' . t('No votes have been recorded for this poll.') . '</p>';
  }
  $output .= '</div>';
  return $output;
}