You are here

function hook_rate_widgets in Rate 7.2

Define templates for rate widgets.

Return value

array

1 function implements hook_rate_widgets()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

rate_rate_widgets in ./rate.module
Implements hook_rate_widgets().
1 invocation of hook_rate_widgets()
_rate_get_widgets in ./rate.module
Get all available widgets or a single widget by name.

File

./rate.api.php, line 13
Defines module hooks.

Code

function hook_rate_widgets() {
  $templates = array();
  $templates['thumbs_up_down'] = new stdClass();
  $templates['thumbs_up_down']->title = t('Thumbs up / down');
  $templates['thumbs_up_down']->class = 'RateWidget';
  $templates['thumbs_up_down']->file = 'rate.widget.inc';
  $templates['fivestar'] = new stdClass();
  $templates['fivestar']->title = t('Fivestar');
  $templates['fivestar']->class = 'RateWidget';
  $templates['fivestar']->file = 'rate.widget.inc';
  return $templates;
}