diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-12-12 16:13:48 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-12-12 16:13:48 +0000 |
commit | eaa5a4f6e2c2feac03442184198315eb795ac282 (patch) | |
tree | 08786cc7048127837063e93b9295a56d3d503c78 /video.module | |
parent | ade7b09612e13401d154f11a3f9ef5c46b5934bc (diff) | |
download | video-eaa5a4f6e2c2feac03442184198315eb795ac282.tar.gz video-eaa5a4f6e2c2feac03442184198315eb795ac282.tar.bz2 |
Updating the video field to the save their settings.
Diffstat (limited to 'video.module')
-rw-r--r-- | video.module | 11 |
1 files changed, 10 insertions, 1 deletions
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; } |