rate.api.php in Rate 7.2
Same filename and directory in other branches
Defines module hooks.
File
rate.api.phpView 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
Name | Description |
---|---|
hook_rate_widgets | Define templates for rate widgets. |