From 427d9f26ae67d2c533029b26ac6578528aaddb68 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Sun, 12 Dec 2010 16:17:36 +0000 Subject: Updating video default thumbnail field. --- video.field.inc | 8 -------- video.module | 16 ++++++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/video.field.inc b/video.field.inc index 2b475e4..5dde45d 100644 --- a/video.field.inc +++ b/video.field.inc @@ -191,14 +191,6 @@ function video_field_widget_settings_form($field, $instance) { //default settings $default = video_default_widget_settings($settings); $form = $default + $form; - $form['default_video_thumbnail'] = array( - '#title' => t('Default video thumbnail'), - '#type' => 'managed_file', - '#description' => t('If use default thumbnanil is selected, this image will be shown on display.'), - '#default_value' => $widget['settings']['default_video_thumbnail'], - '#upload_location' => 'public://default_video_thumbnail/', - '#weight' => 19, - ); return $form; } diff --git a/video.module b/video.module index 4d44270..05a88b6 100644 --- a/video.module +++ b/video.module @@ -831,14 +831,14 @@ function video_default_widget_settings($widget) { '#value' => $widget['default_video_thumb'], ); -// $form['default_video_thumbnail'] = array( -// '#title' => t('Default video thumbnail'), -// '#type' => 'managed_file', -// '#description' => t('If use default thumbnanil is selected, this image will be shown on display.'), -// '#default_value' => !empty($widget['default_video_thumbnail']) ? $widget['default_video_thumbnail'] : '', -// '#upload_location' => 'public://default_video_thumbnail/', -// '#weight' => 19, -// ); + $form['default_video_thumbnail'] = array( + '#title' => t('Default video thumbnail'), + '#type' => 'managed_file', + '#description' => t('If use default thumbnanil is selected, this image will be shown on display.'), + '#default_value' => !empty($widget['default_video_thumbnail']) ? $widget['default_video_thumbnail'] : '', + '#upload_location' => 'public://default_video_thumbnail/', + '#weight' => 19, + ); return $form; } -- cgit v1.2.3