function poll_theme in Poll 8
Implements hook_theme().
File
- ./
poll.module, line 44 - 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_question' => NULL,
'results' => NULL,
'votes' => NULL,
'block' => NULL,
'pid' => NULL,
'poll' => NULL,
'view_mode' => NULL,
'vote' => NULL,
'show_question' => FALSE,
),
),
'poll_meter' => array(
'template' => 'poll-meter',
'variables' => array(
'display_value' => NULL,
'form' => NULL,
'high' => NULL,
'low' => NULL,
'max' => NULL,
'min' => NULL,
'optimum' => NULL,
'choice' => NULL,
'value' => NULL,
'percentage' => NULL,
'attributes' => array(),
'poll' => NULL,
),
),
);
return $theme_hooks;
}