function _video_upload_insert in Video 6
Same name and namespace in other branches
- 5 types/video_upload/video_upload.module \_video_upload_insert()
- 6.2 types/video_upload/video_upload.module \_video_upload_insert()
1 call to _video_upload_insert()
- video_upload_nodeapi in types/
video_upload/ video_upload.module - Implementation of hook_nodeapi()
File
- types/
video_upload/ video_upload.module, line 430 - video.module
Code
function _video_upload_insert(&$node) {
//print "insert";
//print_r($node);
//exit;
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
_video_upload_store_file($file, $node);
}
}