theme_poll_results

  1. drupal
    1. 4.7
    2. 5 poll.module
    3. 6 theme.php
    4. 7 theme.php
Versions
4.7 theme_poll_results($title, $results, $votes, $links, $block)
5 theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote)
6 theme_poll_results()
7 theme_poll_results($variables)

Code

modules/poll.module, line 354

<?php
function theme_poll_results($title, $results, $votes, $links, $block) {
  if ($block) {
    $output .= '<div class="poll">';
    $output .= '<div class="title">' . $title . '</div>';
    $output .= $results;
    $output .= '<div class="total">' . t('Total votes: %votes', array('%votes' => $votes)) . '</div>';
    $output .= '</div>';
    $output .= '<div class="links">' . theme('links', $links) . '</div>';
  }
  else {
    $output .= '<div class="poll">';
    $output .= $results;
    $output .= '<div class="total">' . t('Total votes: %votes', array('%votes' => $votes)) . '</div>';
    $output .= '</div>';
  }

  return $output;
}
?>