function _video_upload_get_file in Video 6.2
Same name and namespace in other branches
- 5 types/video_upload/video_upload.module \_video_upload_get_file()
- 6 types/video_upload/video_upload.module \_video_upload_get_file()
Get the file object with the given $fid. This function cache its results
7 calls to _video_upload_get_file()
- video_ffmpeg_helper_nodeapi in plugins/
video_ffmpeg_helper/ video_ffmpeg_helper.module - Implementation of hook_nodeapi()
- _video_ffmpeg_helper_add_rendering in plugins/
video_ffmpeg_helper/ video_ffmpeg_helper.module - Add a video conversion rendering process to the queue
- _video_ffmpeg_helper_get_video_info in plugins/
video_ffmpeg_helper/ video_ffmpeg_helper.module - Get some informations from the video file
- _video_upload_insert in types/
video_upload/ video_upload.module - _video_upload_load in types/
video_upload/ video_upload.module
File
- types/
video_upload/ video_upload.module, line 553 - video.module
Code
function _video_upload_get_file($fid) {
static $files = array();
if (!$fid) {
return NULL;
}
if (!isset($files[$fid])) {
$files[$fid] = db_fetch_object(db_query('SELECT * from {files} WHERE fid = %d', $fid));
}
return $files[$fid];
}