Full ELMS Learning Network documentation
poll-results.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 modules/poll/poll-results.tpl.php
- cle7 modules/poll/poll-results.tpl.php
- ecd7 modules/poll/poll-results.tpl.php
- elmsmedia7 modules/poll/poll-results.tpl.php
- harmony7 modules/poll/poll-results.tpl.php
- icor7 modules/poll/poll-results.tpl.php
- meedjum_blog7 modules/poll/poll-results.tpl.php
- mooc7 modules/poll/poll-results.tpl.php
Default theme implementation to display the poll results in a block.
Variables available:
- $title: The title of the poll.
- $results: The results of the poll.
- $votes: The total results in the poll.
- $links: Links in the poll.
- $nid: The nid of the poll
- $cancel_form: A form to cancel the user's vote, if allowed.
- $raw_links: The raw array of links.
- $vote: The choice number of the current user's vote.
See also
template_preprocess_poll_results()
1 theme call to poll-results.tpl.php
- poll_view_results in modules/
poll/ poll.module - Generates a graphical representation of the results of a poll.
6 string references to the theme hook from poll-results.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- drupal-6.filled.database.php in modules/
simpletest/ tests/ upgrade/ drupal-6.filled.database.php - Filled installation of Drupal 6.17, for test purposes.
- poll_menu in modules/
poll/ poll.module - Implements hook_menu().
- poll_theme in modules/
poll/ poll.module - Implements hook_theme().
- poll_theme in modules/
poll/ poll.module - Implements hook_theme().
- poll_view_results in modules/
poll/ poll.module - Generates a graphical representation of the results of a poll.
File
modules/poll/poll-results.tpl.phpView source
- <?php
-
- /**
- * @file
- * Default theme implementation to display the poll results in a block.
- *
- * Variables available:
- * - $title: The title of the poll.
- * - $results: The results of the poll.
- * - $votes: The total results in the poll.
- * - $links: Links in the poll.
- * - $nid: The nid of the poll
- * - $cancel_form: A form to cancel the user's vote, if allowed.
- * - $raw_links: The raw array of links.
- * - $vote: The choice number of the current user's vote.
- *
- * @see template_preprocess_poll_results()
- *
- * @ingroup themeable
- */
- ?>
- <div class="poll">
- <?php print $results; ?>
- <div class="total">
- <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
- </div>
- <?php if (!empty($cancel_form)): ?>
- <?php print $cancel_form; ?>
- <?php endif; ?>
- </div>
-