aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}