aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-12 16:17:36 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-12 16:17:36 +0000
commit427d9f26ae67d2c533029b26ac6578528aaddb68 (patch)
tree5c56d7287384b803f392e5b23f5a66e95fb79334
parenteaa5a4f6e2c2feac03442184198315eb795ac282 (diff)
downloadvideo-427d9f26ae67d2c533029b26ac6578528aaddb68.tar.gz
video-427d9f26ae67d2c533029b26ac6578528aaddb68.tar.bz2
Updating video default thumbnail field.
-rw-r--r--video.field.inc8
-rw-r--r--video.module16
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;
}