diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-03-23 04:17:29 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-03-23 04:17:29 +0000 |
commit | 8041073c8d74e5d24e3b9f10143f3e4bd04db2de (patch) | |
tree | 89827aac40d499a41c4deae85719712630836568 /types/video_url | |
parent | b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51 (diff) | |
download | video-8041073c8d74e5d24e3b9f10143f3e4bd04db2de.tar.gz video-8041073c8d74e5d24e3b9f10143f3e4bd04db2de.tar.bz2 |
removing old files and commenting new file field and other files to the vidoe module page.
Diffstat (limited to 'types/video_url')
-rw-r--r-- | types/video_url/video_url.info | 6 | ||||
-rw-r--r-- | types/video_url/video_url.module | 102 |
2 files changed, 0 insertions, 108 deletions
diff --git a/types/video_url/video_url.info b/types/video_url/video_url.info deleted file mode 100644 index 474719f..0000000 --- a/types/video_url/video_url.info +++ /dev/null @@ -1,6 +0,0 @@ -;$Id$ -name = URL Video -description = Enable URL video support for Video module. -dependencies[] = video -package = "Video" -core = 6.x diff --git a/types/video_url/video_url.module b/types/video_url/video_url.module deleted file mode 100644 index 0e92ec6..0000000 --- a/types/video_url/video_url.module +++ /dev/null @@ -1,102 +0,0 @@ -<?php -//$Id$ -/** - * @file - * Enable Path or URL support for video module. - * - * @author Fabio Varesano <fvaresano at yahoo dot it> - * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw at gmail dot com> - * @todo - */ - - -/** - * Implementation of hook_menu -*/ -function video_url_menu() { - $items = array(); - $maycache=true; - if($maycache) { - $items['node/add/video/url'] = array( - 'title' => 'URL', - 'access arguments' => array('create video') - ); - } - - return $items; -} - - -/** - * Implementation of hook_v_help -*/ -function video_url_v_help() { - - $help = array(); - $help['url']['data'] = '<b>' . t('Url support') . '</b>'; - $help['url']['children'] = array(t('You can link to any video file on the Internet.')); - - return $help; -} - - -/** - * Implementation of hook_v_info() -*/ -function video_url_v_info() { - $info['url'] = array( - '#name' => 'URL Video', - '#description' => t('Post a video available on the Internet to this website.'), - '#downloadable' => TRUE, - '#autothumbable' => FALSE, - '#autoresolution' => FALSE, - '#autoplaytime' => FALSE, - ); - - return $info; -} - - -/** - * Implementation of hook_v_form() -*/ -function video_url_v_form(&$node, &$form) { - - $form['video']['vidfile'] = array( - '#type' => 'textfield', - '#title' => t('URL to the video'), - '#default_value' => $node->vidfile, - '#maxlength' => 700, - '#required' => TRUE, - '#weight' => -20, - '#description' => t('Insert the URL to the video file. This shuold be something similar to <em>http://www.example.com/videos/myvideo.flv</em>') . ' ' . l(t('More information.'), 'video/help', array('fragment' => 'videofile'))); - - return $form; -} - - -/** - * implementation of hook_v_validate -*/ -function video_url_v_validate($node) { - // Can you suggest a validation? - // validation should allow URLs, relative paths but also streaming servers URLs -} - -/** - * Implementation of hook_v_play -*/ -function video_url_v_play($node) { - module_load_include('inc', 'video', 'includes/common'); - return _video_common_get_player($node); -} - - -/** - * Implements the hook_v_download -*/ -function video_url_v_download($node) { - $url = _video_get_fileurl($node->vidfile); - - header("Location: $url"); //Redirect to the video file URL. -} |