function advpoll_ranking_theme in Advanced Poll 7
Same name and namespace in other branches
- 7.3 advpoll_ranking/advpoll_ranking.module \advpoll_ranking_theme()
- 7.2 advpoll_ranking/advpoll_ranking.module \advpoll_ranking_theme()
Implements hook_theme().
Theme elements used by Advanced Ranking Poll.
File
- advpoll_ranking/
advpoll_ranking.module, line 222
Code
function advpoll_ranking_theme($existing, $type, $theme, $path) {
return array(
'advpoll_runoff' => array(
'variables' => array(
'total' => 0,
'rows' => array(),
'percentage' => 0,
'nid' => null,
'cancel_form' => null,
),
'path' => drupal_get_path('module', 'advpoll_ranking') . '/templates',
'template' => 'advpoll-runoff',
),
'advpoll_borda_bar' => array(
'variables' => array(
'percentage' => 0,
'votes' => 0,
'voted' => 0,
),
'path' => drupal_get_path('module', 'advpoll_ranking') . '/templates',
'template' => 'advpoll-borda-bar',
),
);
}