From f53f62a5ecf8343941e2c74d06b429bb271d7df2 Mon Sep 17 00:00:00 2001 From: Heshan Date: Sun, 13 Mar 2011 00:03:05 +0530 Subject: Completed some transcoding stuff and tested the video convert on save. --- video.module | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'video.module') diff --git a/video.module b/video.module index a2be02a..765ee5b 100644 --- a/video.module +++ b/video.module @@ -134,30 +134,6 @@ function video_cron() { } } -/** - * Implementation of hook_form_alter() - * @param string $form - * @param $form_state - * @param $form_id - */ -function video_form_alter(&$form, &$form_state, $form_id) { - if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] . '_node_form' == $form_id) { - $form['buttons']['submit']['#submit'][] = 'video_node_update_submit'; - } -} - -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 - $transcoder = new video_transcoder; - $video = array('nid' => $form_state['nid'], 'fid' => $fid); - $transcoder->update_job($video); - } - } -} - /* * Utility function that will add a preview of thumbnails for you to select when uploading videos. */ @@ -239,7 +215,6 @@ function video_thumb_process(&$element, &$form_state) { function video_file_delete($file) { // @TODO : check for enable trancoder // delete the transcoder job - module_load_include('inc', 'video', '/includes/transcoder'); $transcoder = new video_transcoder; $transcoder->delete_job($file); -- cgit v1.2.3