You are here

function jw_player_theme in JW Player 7.2

Same name and namespace in other branches
  1. 8 jw_player.module \jw_player_theme()
  2. 7 jw_player.module \jw_player_theme()

Implements hook_theme().

File

./jw_player.module, line 42
Adds a theme function which allows theme developers to use the JW Player.

Code

function jw_player_theme() {
  return array(
    'jw_player' => array(
      'variables' => array(
        'file' => NULL,
        'sources' => NULL,
        'playlist' => NULL,
        'preset' => '',
        'image' => '',
        'html_id' => NULL,
        'options' => array(),
        'playlist_size' => JW_PLAYER_DEFAULT_PLAYLIST_SIZE,
        'playlist_position' => JW_PLAYER_DEFAULT_PLAYLIST_POSITION,
      ),
      'template' => 'theme/jw_player',
    ),
    'jw_player_sharing_sites_order' => array(
      'render element' => 'element',
      'file' => 'theme/jw_player.theme.inc',
    ),
  );
}