You are here

function jw_player_process_jw_player in JW Player 7.2

Same name and namespace in other branches
  1. 7 jw_player.module \jw_player_process_jw_player()

Implements hook_process_HOOK().

File

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

Code

function jw_player_process_jw_player(&$variables) {
  $variables['jw_player_inline_js_code'] = stripslashes(json_encode($variables['config']));

  // Load the JW Player libraries (and integration into Drupal).
  drupal_add_library('jw_player', 'jwplayer');
}