You are here

function jw_player_libraries_load in JW Player 7.2

Post-load callback for the jwplayer library.

See also

jw_player_libraries_info().

1 string reference to 'jw_player_libraries_load'
jw_player_libraries_info in ./jw_player.module
Implements hook_libraries_info()

File

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

Code

function jw_player_libraries_load($library, $version, $variant) {
  if ($key = jw_player_get_key()) {
    drupal_add_js('jwplayer.key=' . drupal_json_encode((string) $key), array(
      'type' => 'inline',
      'scope' => 'header',
      'weight' => 5,
    ));
  }
}