You are here

function fivestar_fivestar_widgets in Fivestar 8

Same name and namespace in other branches
  1. 5 fivestar.module \fivestar_fivestar_widgets()
  2. 6.2 fivestar.module \fivestar_fivestar_widgets()
  3. 6 fivestar.module \fivestar_fivestar_widgets()
  4. 7.2 fivestar.module \fivestar_fivestar_widgets()

Implements hook_fivestar_widgets().

File

./fivestar.module, line 192
A simple n-star voting widget, usable in other forms.

Code

function fivestar_fivestar_widgets() {

  // Widgets defined by the core Fivestar module.
  $widgets = [
    'basic' => [
      'library' => 'fivestar/basic',
      'label' => t('Basic'),
    ],
    'craft' => [
      'library' => 'fivestar/craft',
      'label' => t('Craft'),
    ],
    'drupal' => [
      'library' => 'fivestar/drupal',
      'label' => t('Drupal'),
    ],
    'flames' => [
      'library' => 'fivestar/flames',
      'label' => t('Flames'),
    ],
    'hearts' => [
      'library' => 'fivestar/hearts',
      'label' => t('Hearts'),
    ],
    'lullabot' => [
      'library' => 'fivestar/lullabot',
      'label' => t('Lullabot'),
    ],
    'minimal' => [
      'library' => 'fivestar/minimal',
      'label' => t('Minimal'),
    ],
    'outline' => [
      'library' => 'fivestar/outline',
      'label' => t('Outline'),
    ],
    'oxygen' => [
      'library' => 'fivestar/oxygen',
      'label' => t('Oxygen'),
    ],
    'small' => [
      'library' => 'fivestar/small',
      'label' => t('Small'),
    ],
  ];
  return $widgets;
}