function fivestar_votingapi_views_formatters in Fivestar 5
Same name and namespace in other branches
- 6.2 fivestar.module \fivestar_votingapi_views_formatters()
- 6 fivestar.module \fivestar_votingapi_views_formatters()
File
- ./
fivestar.module, line 1580 - A simple n-star voting widget, usable in other forms.
Code
function fivestar_votingapi_views_formatters($details = array()) {
if ($details['value_type'] == 'percent') {
return array(
'fivestar_views_value_display_handler' => t('Fivestar Stars (display only)'),
'fivestar_views_widget_compact_handler' => t('Fivestar Stars (clickable, no text)'),
'fivestar_views_widget_normal_handler' => t('Fivestar Stars (clickable, with text)'),
);
}
}