function _video_upload_update in Video 6
Same name and namespace in other branches
- 5 types/video_upload/video_upload.module \_video_upload_update()
- 6.2 types/video_upload/video_upload.module \_video_upload_update()
1 call to _video_upload_update()
- video_upload_nodeapi in types/
video_upload/ video_upload.module - Implementation of hook_nodeapi()
File
- types/
video_upload/ video_upload.module, line 440 - video.module
Code
function _video_upload_update(&$node) {
if ($node->new_video_upload_file_fid && ($file = _video_upload_get_file($node->new_video_upload_file_fid))) {
// there is a new file uploaded (now stored on the temp path)
//need to store in the final directory
//exit;
if ($node->current_video_upload_file_fid) {
// let's delete the old video
_video_upload_delete_file($node->current_video_upload_file_fid);
}
_video_upload_store_file($file, $node);
}
}