aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2011-02-04 06:50:28 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2011-02-04 06:50:28 +0000
commitd51725f6edf57b170a9bb38bf609f93e9eba08d4 (patch)
treedaf9ef88728f28af89f6b8050fbcffa29ccfc93a /includes
parent972258223885132cc38dbcdbc9e0efce8dd7afc5 (diff)
downloadvideo-d51725f6edf57b170a9bb38bf609f93e9eba08d4.tar.gz
video-d51725f6edf57b170a9bb38bf609f93e9eba08d4.tar.bz2
Adding formatter update for the default thumbnails check and display settings
Diffstat (limited to 'includes')
-rw-r--r--includes/video_helper.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/video_helper.inc b/includes/video_helper.inc
index 54d1ed8..e031f39 100644
--- a/includes/video_helper.inc
+++ b/includes/video_helper.inc
@@ -51,7 +51,7 @@ class video_helper {
// load thumbnail object
$video->thumbnail = $this->thumbnail_object($variables);
// $video->formatter = $variables['#formatter'];
- $video->autoplay = variable_get('video_autoplay', TRUE);
+ $video->autoplay = variable_get('video_autoplay', FALSE);
$video->autobuffering = variable_get('video_autobuffering', TRUE);
$video->theora_player = variable_get('video_ogg_player', 'http://theora.org/cortado.jar');
// lets find out if we have transcoded this file and update our paths.
@@ -103,7 +103,8 @@ class video_helper {
$thumbnail->filepath = $thumbnail_load->uri;
} else {
//need some type of default if nothing is present
- //drupal_set_message(t('No thumbnail has been configured for the video.'), 'error');
+ drupal_set_message(t('No thumbnail has been configured for the video !title.', array('!title' => $variables['entity']->title)), 'error');
+ return;
}
$thumbnail->url = file_create_url($thumbnail->filepath);