function _video_upload_insert in Video 5
Same name and namespace in other branches
- 6 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 433 - Enable Uploaded videos support for video module.
Code
function _video_upload_insert(&$node) {
//print 'insert';
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);
}
}