aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
Diffstat (limited to 'video.module')
-rw-r--r--video.module25
1 files changed, 0 insertions, 25 deletions
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 <type> $form_state
- * @param <type> $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);