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