function fivestar_theme in Fivestar 6
Same name and namespace in other branches
- 8 fivestar.module \fivestar_theme()
- 6.2 fivestar.module \fivestar_theme()
- 7.2 fivestar.module \fivestar_theme()
Implementation of hook_theme().
File
- ./fivestar.module, line 93 
- A simple n-star voting widget, usable in other forms.
Code
function fivestar_theme() {
  return array(
    // Fivestar theme functions.
    'fivestar' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'fivestar_node_type_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'fivestar_preview' => array(
      'arguments' => array(
        'style' => NULL,
        'text' => NULL,
        'stars' => NULL,
        'unvote' => NULL,
        'title' => NULL,
        'labels_enable' => TRUE,
        'labels' => array(),
      ),
    ),
    'fivestar_preview_widget' => array(
      'arguments' => array(
        'css_file' => NULL,
      ),
    ),
    'fivestar_preview_wrapper' => array(
      'arguments' => array(
        'content' => NULL,
        'type' => 'direct',
      ),
    ),
    'fivestar_select' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'fivestar_settings' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'fivestar_static' => array(
      'arguments' => array(
        'rating' => NULL,
        'stars' => 5,
      ),
    ),
    'fivestar_static_element' => array(
      'arguments' => array(
        'star_display' => NULL,
        'title' => NULL,
        'description' => NULL,
      ),
    ),
    'fivestar_summary' => array(
      'arguments' => array(
        'user_rating' => NULL,
        'average_rating' => NULL,
        'votes' => 0,
        'stars' => 5,
      ),
    ),
    'fivestar_widget' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    // fivestar_color.inc.
    'fivestar_color_form' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    // fivestar_field.inc.
    'fivestar_formatter_default' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'fivestar_formatter_rating' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'fivestar_formatter_percentage' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
  );
}