function poll_theme
7.x poll.module | poll_theme() |
6.x poll.module | poll_theme() |
Implementation of hook_theme()
File
- drupal-6.x/
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),
),
);
}