function template_preprocess_videojs_view in Video.js (HTML5 Video Player) 7.2
Same name and namespace in other branches
- 6.2 includes/videojs.theme.inc \template_preprocess_videojs_view()
- 6 includes/videojs.theme.inc \template_preprocess_videojs_view()
- 7 includes/videojs.theme.inc \template_preprocess_videojs_view()
Preprocess function for videojs.tpl.php when displaying a view as a playlist.
File
- includes/
videojs.theme.inc, line 69 - Theme and preprocess functions for the Video.js module.
Code
function template_preprocess_videojs_view(&$vars) {
videojs_add();
$vars['player_id'] = 'videojs-view-' . str_replace('_', '-', $vars['view']->name);
}