function video_node_update_submit in Video 6.4
Same name and namespace in other branches
- 6.5 video.module \video_node_update_submit()
1 string reference to 'video_node_update_submit'
- video_form_alter in ./
video.module - Implementation of hook_form_alter()
File
- ./
video.module, line 310 - video.module
Code
function video_node_update_submit($form, &$form_state) {
//lets update our video rending table to include the node id created
if (isset($form_state['nid']) && isset($form_state['values']['video_id']) && is_array($form_state['values']['video_id'])) {
foreach ($form_state['values']['video_id'] as $fid) {
// @TODO : check for enable trancoder
module_load_include('inc', 'video', '/includes/transcoder');
$transcoder = new video_transcoder();
$video = array(
'nid' => $form_state['nid'],
'fid' => $fid,
);
$transcoder
->update_job($video);
// Lets other module to know to update
video_module_invoke('update', $form, $form_state);
}
}
}