You are here

function jplayer_theme in jPlayer 7.2

Same name and namespace in other branches
  1. 6 jplayer.module \jplayer_theme()

Implements hook_theme().

File

./jplayer.module, line 31
Provides an HTML5-compatible with Flash-fallback audio player.

Code

function jplayer_theme() {
  return array(
    'jplayer' => array(
      'template' => 'theme/jplayer',
      'variables' => array(
        'entity_type' => NULL,
        'entity' => NULL,
        'field_name' => NULL,
        'items' => array(),
        'settings' => array(),
        'type' => '',
        'playlist' => '',
      ),
      'file' => 'includes/jplayer.theme.inc',
    ),
    'jplayer_item_list' => array(
      'render element' => 'element',
      'file' => 'includes/jplayer.theme.inc',
      'variables' => array(
        'items' => array(),
        'title' => NULL,
        'type' => 'ul',
        'attributes' => array(),
      ),
    ),
    'jplayer_view_playlist' => array(
      'template' => 'theme/jplayer',
      'arguments' => array(
        'view' => NULL,
        'items' => NULL,
      ),
      'file' => 'includes/jplayer.theme.inc',
    ),
  );
}