function advpoll_theme in Advanced Poll 7
Same name and namespace in other branches
- 8 advpoll.module \advpoll_theme()
- 6.3 advpoll.module \advpoll_theme()
- 6 advpoll.module \advpoll_theme()
- 6.2 advpoll.module \advpoll_theme()
- 7.3 advpoll.module \advpoll_theme()
- 7.2 advpoll.module \advpoll_theme()
Implements hook_theme().
File
- ./
advpoll.module, line 244
Code
function advpoll_theme($existing, $type, $theme, $path) {
return array(
'advpoll_bar' => array(
'variables' => array(
'percentage' => 0,
'votes' => 0,
'voted' => 0,
),
'path' => drupal_get_path('module', 'advpoll') . '/templates',
'template' => 'advpoll-bar',
),
'advpoll_closed' => array(
'variables' => array(
'data' => null,
),
'path' => drupal_get_path('module', 'advpoll') . '/templates',
'template' => 'advpoll-closed',
),
'advpoll_noresults' => array(
'variables' => array(
'available_date' => null,
'votes' => null,
'nid' => null,
'cancel_form' => null,
),
'path' => drupal_get_path('module', 'advpoll') . '/templates',
'template' => 'advpoll-noresults',
),
'advpoll_results' => array(
'variables' => array(
'bars' => null,
'total' => 0,
'voted' => null,
'nid' => null,
'cancel_form' => null,
),
'path' => drupal_get_path('module', 'advpoll') . '/templates',
'template' => 'advpoll-results',
),
'advpoll_ineligible' => array(
'variables' => array(
'data' => null,
),
'path' => drupal_get_path('module', 'advpoll') . '/templates',
'template' => 'advpoll-ineligible',
),
);
}