You are here

rate.api.php in Rate 7.2

Same filename and directory in other branches
  1. 8.2 rate.api.php

Defines module hooks.

File

rate.api.php
View source
<?php

/**
 * @file
 * Defines module hooks.
 */

/**
 * Define templates for rate widgets.
 *
 * @return array
 */
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;
}

Functions

Namesort descending Description
hook_rate_widgets Define templates for rate widgets.