You are here

function jw_player_default_settings in JW Player 7.2

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

Returns the default settings for JW Player. Used in cases where a preset is not provided when the JW Player theme function is called.

1 call to jw_player_default_settings()
template_preprocess_jw_player in ./jw_player.module
Process variables for jw_player.tpl.php.

File

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

Code

function jw_player_default_settings() {
  $defaults =& drupal_static(__FUNCTION__);
  if (!isset($defaults)) {
    $defaults = array(
      'width' => '640',
      'height' => '480',
      'autostart' => FALSE,
      'controlbar' => 'bottom',
    );
  }
  return $defaults;
}