function rate_theme in Rate 7
Same name and namespace in other branches
- 8.2 rate.module \rate_theme()
- 8 rate.module \rate_theme()
- 6.2 rate.module \rate_theme()
- 7.2 rate.module \rate_theme()
Implements hook_theme().
File
- ./
rate.module, line 1125 - Rate module
Code
function rate_theme() {
return array(
'rate_widget' => array(
'pattern' => 'rate_widget__',
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-widget',
),
'rate_button' => array(
'pattern' => 'rate_button__',
'variables' => array(
'text' => NULL,
'href' => NULL,
'class' => NULL,
),
),
'rate_admin_types' => array(
'render element' => 'element',
'file' => 'rate.admin.inc',
),
'rate_admin_options' => array(
'render element' => 'element',
'file' => 'rate.admin.inc',
),
// Templates for default widget types.
'rate_template_thumbs_up' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-thumbs-up',
'path' => drupal_get_path('module', 'rate') . '/templates/thumbs-up',
),
'rate_template_thumbs_up_down' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-thumbs-up-down',
'path' => drupal_get_path('module', 'rate') . '/templates/thumbs-up-down',
),
'rate_template_number_up_down' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-number-up-down',
'path' => drupal_get_path('module', 'rate') . '/templates/number-up-down',
),
'rate_template_fivestar' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-fivestar',
'path' => drupal_get_path('module', 'rate') . '/templates/fivestar',
),
'rate_template_emotion' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-emotion',
'path' => drupal_get_path('module', 'rate') . '/templates/emotion',
),
'rate_template_yesno' => array(
'variables' => array(
'links' => NULL,
'results' => NULL,
'mode' => NULL,
'just_voted' => FALSE,
'content_type' => NULL,
'content_id' => NULL,
'display_options' => NULL,
),
'template' => 'rate-template-yesno',
'path' => drupal_get_path('module', 'rate') . '/templates/yesno',
),
);
}