aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
committerHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
commit69927fc15c744bd3602fe7d404af6a80130a1ce9 (patch)
tree5d4f042539bf1090359d9ea8a515904544add469 /video.module
parent51c7e284ec5976d5918e506265154f34d32e9a48 (diff)
downloadvideo-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.gz
video-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.bz2
Fixed the JS issues and Select players and trasncoders
Diffstat (limited to 'video.module')
-rw-r--r--video.module13
1 files changed, 3 insertions, 10 deletions
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();
}
/**