function starrating_theme in Star Rating 8.4
Impements hook_theme.
File
- ./
starrating.module, line 11 - Contains module file for starrating.
Code
function starrating_theme($existing, $type, $theme, $path) {
return [
'starrating_formatter' => [
'variables' => [
'rate' => 5,
'min' => NULL,
'max' => NULL,
'icon_type' => NULL,
'icon_color' => NULL,
'fill_blank' => NULL,
'type' => 'starrating',
],
],
];
}