diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-16 10:58:16 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-16 10:58:16 +0530 |
commit | a31b9883849b0a04420ee1d476fbe08c87bc5d53 (patch) | |
tree | 6b3315feb20d6043929953588b01e23f22849790 /video.module | |
parent | 1689df6273653793d0f2354646fd935f56c6efca (diff) | |
download | video-a31b9883849b0a04420ee1d476fbe08c87bc5d53.tar.gz video-a31b9883849b0a04420ee1d476fbe08c87bc5d53.tar.bz2 |
Fixed the dependencied with the Media module.
Diffstat (limited to 'video.module')
-rw-r--r-- | video.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video.module b/video.module index 4beee74..d7f180b 100644 --- a/video.module +++ b/video.module @@ -239,8 +239,8 @@ function video_thumb_process(&$element, &$form_state) { // @todo Add smaller video preview instead of thumbnail? if (isset($file['thumbanail']) && !empty($file['thumbanail'])) { $large_thumb = file_load($file['thumbanail']); - } elseif (!empty($field['settings']['default_video_thumbnail'])) { - $large_thumb = file_load($field['settings']['default_video_thumbnail']); + } elseif (!empty($field['settings']['default_video_thumbnail']['fid'])) { + $large_thumb = file_load($field['settings']['default_video_thumbnail']['fid']); } else { // $large_thumb = file_load($default_thumb); } |