You are here

function video_node_update_submit in Video 6.5

Same name and namespace in other branches
  1. 6.4 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 340
Main file of the 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'])) {
    $transcoder = video_get_transcoder();
    foreach ($form_state['values']['video_id'] as $fid) {
      $video = new stdClass();
      $video->fid = intval($fid);
      $video->nid = intval($form_state['nid']);
      $transcoder
        ->update_job($video);

      // Lets other module to know to update
      video_module_invoke('update', $form, $form_state);
    }
  }
}