function poll_theme
Same name and namespace in other branches
- 7.x drupal-7.x/modules/poll/poll.module \poll_theme()
Implementation of hook_theme()
Archivo
- 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.
Código
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,
),
),
);
}