poll_theme

Versions
6 – 7
poll_theme()

Implementation of hook_theme()

Code

modules/poll/poll.module, line 32

<?php
function poll_theme() {
  return array(
    'poll_vote' => array(
      'template' => 'poll-vote',
      'arguments' => array('form' => NULL),
    ),
    'poll_choices' => array(
      'arguments' => array('form' => NULL),
    ),
    'poll_results' => array(
      'template' => 'poll-results',
      'arguments' => array('raw_title' => NULL, 'results' => NULL, 'votes' => NULL, 'raw_links' => NULL, 'block' => NULL, 'nid' => NULL, 'vote' => NULL),
    ),
    'poll_bar' => array(
      'template' => 'poll-bar',
      'arguments' => array('title' => NULL, 'votes' => NULL, 'total_votes' => NULL, 'vote' => NULL, 'block' => NULL),
    ),
  );
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.