function video_download_access in Video 6.2
1 string reference to 'video_download_access'
- video_menu in ./
video.module - Implementation of hook_menu().
File
- ./
video.module, line 122 - video.module
Code
function video_download_access() {
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->type == 'video' && $node->vidfile && user_access('access video')) {
//If the video is of type youtube and multi-file downloads aren't turned on don't show the download tab.
if (video_support_download($node) && $node->disable_multidownload != 1) {
return true;
}
}
}
return false;
}