function rate_theme in Rate 8.2
Same name and namespace in other branches
- 8 rate.module \rate_theme()
- 6.2 rate.module \rate_theme()
- 7.2 rate.module \rate_theme()
- 7 rate.module \rate_theme()
Implements hook_theme().
File
- ./
rate.module, line 284 - Hook implementation code for the Rate module.
Code
function rate_theme($existing, $type, $theme, $path) {
return [
// Rate widgets theme.
'rate_widgets_summary' => [
'variables' => [
'results' => [],
'vote' => NULL,
'rate_widget' => NULL,
'widget_template' => NULL,
'disabled' => FALSE,
'deadline_disabled' => FALSE,
],
],
'rate_widget' => [
'template' => 'rate-widget',
'render element' => 'form',
],
'form_element__rating' => [
'base hook' => 'form_element',
],
];
}