You are here

function rate_theme in Rate 6.2

Same name and namespace in other branches
  1. 8.2 rate.module \rate_theme()
  2. 8 rate.module \rate_theme()
  3. 7.2 rate.module \rate_theme()
  4. 7 rate.module \rate_theme()

Implements hook_theme().

File

./rate.module, line 924
Rate module

Code

function rate_theme() {
  return array(
    'rate_widget' => array(
      'pattern' => 'rate_widget__',
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'rate-widget',
    ),
    'rate_widget_container' => array(
      'pattern' => 'rate_widget_container',
      'arguments' => array(
        'classes' => NULL,
        'dom_id' => NULL,
        'widget' => NULL,
      ),
      'template' => 'rate-widget-container',
    ),
    'rate_button' => array(
      'pattern' => 'rate_button__',
      'arguments' => array(
        'text' => NULL,
        'href' => NULL,
        'class' => NULL,
      ),
    ),
    'rate_admin_types' => array(
      'arguments' => array(
        'element' => NULL,
      ),
      'file' => 'rate.admin.inc',
    ),
    'rate_admin_options' => array(
      'arguments' => array(
        'element' => NULL,
      ),
      'file' => 'rate.admin.inc',
    ),
    // Templates for default widget types.
    'rate_template_thumbs_up' => array(
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'thumbs-up',
      'path' => drupal_get_path('module', 'rate') . '/templates/thumbs-up',
    ),
    'rate_template_thumbs_up_down' => array(
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'thumbs-up-down',
      'path' => drupal_get_path('module', 'rate') . '/templates/thumbs-up-down',
    ),
    'rate_template_fivestar' => array(
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'fivestar',
      'path' => drupal_get_path('module', 'rate') . '/templates/fivestar',
    ),
    'rate_template_emotion' => array(
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'emotion',
      'path' => drupal_get_path('module', 'rate') . '/templates/emotion',
    ),
    'rate_template_yesno' => array(
      'arguments' => array(
        'links' => NULL,
        'results' => NULL,
        'mode' => NULL,
        'just_voted' => FALSE,
        'content_type' => NULL,
        'content_id' => NULL,
      ),
      'template' => 'yesno',
      'path' => drupal_get_path('module', 'rate') . '/templates/yesno',
    ),
  );
}