function theme_advpoll_results in Advanced Poll 6.2
Same name and namespace in other branches
- 5 advpoll.module \theme_advpoll_results()
- 6.3 advpoll.module \theme_advpoll_results()
- 6 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 1213 - 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 votes: %votes', array(
'%votes' => $votes,
)) . '<br>' . t('Vote again tomorrow') . '</div>';
}
else {
$output .= '<p class="message">' . t('No votes have been recorded for this poll.') . '</p>';
}
$output .= '</div>';
return $output;
}