function poll_theme

Implements hook_theme().

File

drupal/core/modules/poll/poll.module, line 33
Collects votes on different topics in the form of multiple choice questions.

Code

function poll_theme() {
  $theme_hooks = array(
    'poll_vote' => array(
      'template' => 'poll-vote',
      'render element' => 'form',
    ),
    'poll_choices' => array(
      'render element' => 'form',
    ),
    'poll_results' => array(
      'template' => 'poll-results',
      'variables' => array(
        'raw_title' => NULL,
        'results' => NULL,
        'votes' => NULL,
        'raw_links' => NULL,
        'block' => NULL,
        'nid' => NULL,
        'vote' => NULL,
      ),
    ),
  );
  return $theme_hooks;
}