function advpoll_ranking_theme in Advanced Poll 7.3
Same name and namespace in other branches
- 7 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 242
Code
function advpoll_ranking_theme($existing, $type, $theme, $path) {
$theme_hooks = 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',
),
'advpoll_draggable' => array(
'variables' => array(
'data' => NULL,
'node' => NULL,
),
'path' => drupal_get_path('module', 'advpoll_ranking') . '/templates',
'template' => 'advpoll-draggable',
),
'advpoll_ranking' => array(
'variables' => array(
'data' => NULL,
'node' => NULL,
),
'path' => drupal_get_path('module', 'advpoll_ranking') . '/templates',
'template' => 'advpoll-ranking',
),
);
return $theme_hooks;
}