function jw_player_default_settings in JW Player 7
Same name and namespace in other branches
- 7.2 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 254 - 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(
'flashplayer' => file_create_url(libraries_get_path('jwplayer') . '/player.swf'),
'width' => '640',
'height' => '480',
'autoplay' => FALSE,
'controlbar' => 'bottom',
);
}
return $defaults;
}