aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2011-02-04 05:38:29 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2011-02-04 05:38:29 +0000
commit972258223885132cc38dbcdbc9e0efce8dd7afc5 (patch)
treeb070d91a64ed4ffee6a3b87ceb13ba791bb7eeca /video.module
parent90ae392eadddfad417ed4ac752134e3eca70066c (diff)
downloadvideo-972258223885132cc38dbcdbc9e0efce8dd7afc5.tar.gz
video-972258223885132cc38dbcdbc9e0efce8dd7afc5.tar.bz2
Updating the video module with thumbnail support with default thumbnail.
Diffstat (limited to 'video.module')
-rw-r--r--video.module24
1 files changed, 13 insertions, 11 deletions
diff --git a/video.module b/video.module
index 6a03d75..385b334 100644
--- a/video.module
+++ b/video.module
@@ -138,6 +138,15 @@ function video_menu() {
*/
function video_theme() {
$theme = array();
+ $theme['video'] = array(
+ 'variables' => array('item' => NULL, 'path' => NULL, 'video_style' => NULL, 'entity' => NULL, 'field' => NULL, 'instance' => NULL),
+ 'file' => 'video_formatter.inc',
+ );
+ $theme['video_thumbnail'] = array(
+ 'variables' => array('item' => NULL, 'path' => NULL, 'video_style' => NULL, 'entity' => NULL, 'field' => NULL, 'instance' => NULL),
+ 'file' => 'video_formatter.inc',
+ );
+
$theme['video_thumbnails'] = array(
'variables' => array('file' => NULL, 'alt' => '', 'title' => '', 'attributes' => NULL, 'getsize' => TRUE),
'file' => 'video.theme.inc',
@@ -158,14 +167,7 @@ function video_theme() {
'variables' => array('item' => TRUE),
'file' => 'video.theme.inc',
);
- $theme['video_formatter_video_plain'] = array(
- 'variables' => array('element' => NULL),
- 'file' => 'video_formatter.inc',
- );
- $theme['video_formatter_video_nodelink'] = array(
- 'variables' => array('element' => NULL, 'imagecache' => NULL),
- 'file' => 'video_formatter.inc',
- );
+
//$theme['video_formatter_video_colorbox'] = array(
// 'arguments' => array('element' => NULL, 'imagecache' => NULL),
// 'file' => 'video_formatter.inc',
@@ -781,13 +783,13 @@ function video_video_flv_players() {
/**
* Get the object for the suitable player for the parameter resource
*/
-function video_get_player($element) {
+function video_get_player($variables) {
// Setup our node object to be passed along with the player.
-// $node = $element['entity'];
+// $node = $variables['entity'];
// Setup our video object
module_load_include('inc', 'video', '/includes/video_helper');
$video_helper = new video_helper;
- $video = $video_helper->video_object($element);
+ $video = $video_helper->video_object($variables);
// Lets spit out our theme based on the extension
$defaults = video_video_extensions();
$theme_function = variable_get('video_extension_' . $video->player, $defaults[$video->player]);