You are here

function theme_poll_view_voting in Drupal 5

Same name and namespace in other branches
  1. 4 modules/poll.module \theme_poll_view_voting()

Themes the voting form for a poll.

File

modules/poll/poll.module, line 391
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function theme_poll_view_voting($form) {
  $output .= '<div class="poll">';
  $output .= '  <div class="vote-form">';
  $output .= '    <div class="choices">';
  $output .= drupal_render($form['choice']);
  $output .= '    </div>';
  $output .= drupal_render($form['nid']);
  $output .= drupal_render($form['vote']);
  $output .= '  </div>';
  $output .= drupal_render($form);
  $output .= '</div>';
  return $output;
}