function theme_kaltura_playlist_view in Kaltura 5
Same name and namespace in other branches
- 6.2 plugins/kaltura_playlist/kaltura_playlist.module \theme_kaltura_playlist_view()
- 6 plugins/kaltura_playlist/kaltura_playlist.module \theme_kaltura_playlist_view()
1 theme call to theme_kaltura_playlist_view()
- kaltura_playlist_view in plugins/
kaltura_playlist/ kaltura_playlist.module - Implementation of hook_view().
File
- plugins/
kaltura_playlist/ kaltura_playlist.module, line 225
Code
function theme_kaltura_playlist_view($node) {
list($view_name, $view_display) = kaltura_get_view_details($node->playlist_view);
list($view_raw, $view_fields) = kaltura_get_view_raw_data($node->playlist_view);
$first_entry = $view_raw[0];
$view_html = kaltura_nodes2html($view_raw, $view_fields);
$autonext = variable_get('kaltura_viewplaylist_autonext', 1);
$playlist_js = kaltura_prepare_js_code('kaltura_playlist_' . $view_name, $first_entry, $autonext, count($view_raw));
$kdp = kaltura_get_kaltura_kdp($first_entry);
return '<div class="kaltura_playlist"><div class="playlist-player">' . $kdp . '</div><div id="kaltura_playlist_' . $view_name . '" class="play-list">' . '<a class="go up"></a>' . $view_html . '<a class="go down"></a></div><div class="clear-block"></div></div>' . $playlist_js;
}