function _videojs_create_url in Video.js (HTML5 Video Player) 6.2
Same name and namespace in other branches
- 6 includes/videojs.theme.inc \_videojs_create_url()
1 call to _videojs_create_url()
- template_preprocess_videojs in includes/
videojs.theme.inc - Preprocess function for videojs.tpl.php when displaying a view as a playlist.
File
- includes/
videojs.theme.inc, line 113 - Theme and preprocess functions for the Video.js module.
Code
function _videojs_create_url($file) {
if (!empty($file['url'])) {
return $file['url'];
}
if (!empty($file['filepath'])) {
if (strncmp($file['filepath'], 'http:', 5) === 0 || strncmp($file['filepath'], 'https:', 6) === 0) {
return $file['filepath'];
}
return file_create_url(drupal_urlencode($file['filepath']));
}
return '';
}