function rate_slider_rate_templates in Rate 7
Implements hook_rate_templates().
File
- slider/
rate_slider.module, line 6
Code
function rate_slider_rate_templates() {
$templates = array();
$templates['slider'] = new stdClass();
$templates['slider']->value_type = 'percent';
$templates['slider']->options = array(
array(
10,
'1',
),
array(
20,
'2',
),
array(
30,
'3',
),
array(
40,
'4',
),
array(
50,
'5',
),
array(
60,
'6',
),
array(
70,
'7',
),
array(
80,
'8',
),
array(
90,
'9',
),
array(
100,
'10',
),
);
$templates['slider']->theme = 'rate_template_slider';
$templates['slider']->css = drupal_get_path('module', 'rate_slider') . '/templates/slider/slider.css';
$templates['slider']->js = drupal_get_path('module', 'rate_slider') . '/templates/slider/slider.js';
$templates['slider']->customizable = FALSE;
$templates['slider']->translate = FALSE;
$templates['slider']->template_title = t('Slider');
return $templates;
}