You are here

function fivestar_widget_provider_fivestar_widgets in Fivestar 8

Implements hook_fivestar_widgets().

File

tests/modules/fivestar_widget_provider/fivestar_widget_provider.module, line 11
A test module which provides two rating widgetes for use by Fivestar.

Code

function fivestar_widget_provider_fivestar_widgets() {

  // Widgets defined by this module.
  $widgets = [
    'awesome' => [
      'library' => 'fivestar_widget_provider/awesome',
      'label' => t('Awesome Stars'),
    ],
    'cool' => [
      'library' => 'fivestar_widget_provider/cool',
      'label' => t('Cool Stars'),
    ],
  ];
  return $widgets;
}