You are here

function poll_theme in Drupal 6

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

Implementation of hook_theme()

File

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

Code

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,
      ),
    ),
  );
}