From eaa5a4f6e2c2feac03442184198315eb795ac282 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Sun, 12 Dec 2010 16:13:48 +0000 Subject: Updating the video field to the save their settings. --- video.module | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'video.module') diff --git a/video.module b/video.module index a1f5c9f..4d44270 100644 --- a/video.module +++ b/video.module @@ -12,6 +12,7 @@ module_load_include('inc', 'video', 'video.field'); /* * Implementation of hook_init(). */ + function video_init() { drupal_add_css(drupal_get_path('module', 'video') . '/css/video.css'); drupal_add_js(drupal_get_path('module', 'video') . '/js/video.js'); @@ -215,7 +216,6 @@ function video_theme() { return $theme; } - /* * Implmentation of hook_cron(). */ @@ -830,6 +830,15 @@ function video_default_widget_settings($widget) { '#type' => 'value', '#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, +// ); return $form; } -- cgit v1.2.3