[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/modules/poll/ -> poll-results.tpl.php (source)

   1  <?php
   2  // $Id: poll-results.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $
   3  
   4  /**
   5   * @file poll-results-block.tpl.php
   6   * Display the poll results in a block.
   7   *
   8   * Variables available:
   9   * - $title: The title of the poll.
  10   * - $results: The results of the poll.
  11   * - $votes: The total results in the poll.
  12   * - $links: Links in the poll.
  13   * - $nid: The nid of the poll
  14   * - $cancel_form: A form to cancel the user's vote, if allowed.
  15   * - $raw_links: The raw array of links.
  16   * - $vote: The choice number of the current user's vote.
  17   *
  18   * @see template_preprocess_poll_results()
  19   */
  20  ?>
  21  <div class="poll">
  22    <?php print $results; ?>
  23    <div class="total">
  24      <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
  25    </div>
  26    <?php if (!empty($cancel_form)): ?>
  27      <?php print $cancel_form; ?>
  28    <?php endif; ?>
  29  </div>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7