From 69927fc15c744bd3602fe7d404af6a80130a1ce9 Mon Sep 17 00:00:00 2001 From: Heshan Date: Fri, 18 Mar 2011 00:13:45 +0530 Subject: Fixed the JS issues and Select players and trasncoders --- video.module | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'video.module') diff --git a/video.module b/video.module index 4f23168..52391cb 100644 --- a/video.module +++ b/video.module @@ -256,16 +256,9 @@ function video_thumb_process(&$element, &$form_state) { * Implementation of hook_file_delete(). */ function video_file_delete($file) { - // @TODO : check for enable trancoder - // delete the transcoder job - $transcoder = new video_transcoder; - $transcoder->delete_job($file); - - //now lets delete our video thumbnails and folder. - $video_thumb_path = variable_get('video_thumb_path', 'videos/thumbnails'); - $thumb_folder = file_default_scheme() . ':/' . $video_thumb_path . '/' . $file->fid; - // Recursively delete our folder and files - rmdirr($thumb_folder); + db_delete('video_files') + ->condition('fid', $file->fid) + ->execute(); } /** -- cgit v1.2.3