function jw_player_skins in JW Player 7
Same name and namespace in other branches
- 8 jw_player.module \jw_player_skins()
- 7.2 jw_player.module \jw_player_skins()
Retrieves all available skins.
2 calls to jw_player_skins()
- jw_player_ctools_export_ui_form in plugins/
export_ui/ jw_player_ctools_export_ui.inc - Implements hook_ctools_export_ui_form().
- template_preprocess_jw_player in ./
jw_player.module - Process variables for jw_player.tpl.php.
File
- ./
jw_player.module, line 188 - Adds a theme function which allows theme developers to use the JW Player.
Code
function jw_player_skins($name = NULL) {
$skins =& drupal_static(__FUNCTION__);
if (!isset($skins)) {
$directory = libraries_get_path('jwplayer_skins');
$skins = file_scan_directory($directory, '/\\.xml|\\.swf$/');
}
if ($name) {
foreach ($skins as $file) {
if ($file->name == $name) {
return $file;
}
}
}
return $skins;
}