function theme_jplayer_formatter_playlist in jPlayer 6
Themes multiple items as playlist.
File
- includes/
jplayer.theme.inc, line 34
Code
function theme_jplayer_formatter_playlist($element) {
if (isset($element[0]['#item']['fid'])) {
jplayer_add();
// If there's more than one file, use the playlist player. Otherwise, fall
// back to the regular player.
if (isset($element[1])) {
return theme('jplayer_playlist', $element);
}
$element += $element[0];
return theme('jplayer_single', $element);
}
return '';
}