aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_image
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2007-02-18 14:45:47 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2007-02-18 14:45:47 +0000
commit7c8fcbe7f60ed6b81cdb8525e61f40e2aa7de690 (patch)
tree926a2df65f2410f68d0442747d5bec528d845b25 /plugins/video_image
parent575b5db782389c8e3e2ed5891b4fbd87ffa18f8b (diff)
downloadvideo-7c8fcbe7f60ed6b81cdb8525e61f40e2aa7de690.tar.gz
video-7c8fcbe7f60ed6b81cdb8525e61f40e2aa7de690.tar.bz2
#81157 by Sean B Fuller: Don't show video image in node body if showing the video in node body
Diffstat (limited to 'plugins/video_image')
-rw-r--r--plugins/video_image/video_image.module17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/video_image/video_image.module b/plugins/video_image/video_image.module
index 850781a..992795a 100644
--- a/plugins/video_image/video_image.module
+++ b/plugins/video_image/video_image.module
@@ -195,15 +195,16 @@ function theme_video_image_teaser($node) {
* string of content to display
*/
function theme_video_image_body($node) {
- if($node->serial_data['iid']) {
- $image = node_load($node->serial_data['iid']);
- $image = image_display($image, 'thumbnail');
- }
- else { // only for backward compatibility
- $image = theme('image', $node->serial_data['image_view'], $node->title, $node->title, array('class' => 'video_image_view'), FALSE); //Create image HTML
+ if(variable_get('video_playinbody', 0) == 0){
+ if($node->serial_data['iid']) {
+ $image = node_load($node->serial_data['iid']);
+ $image = image_display($image, 'thumbnail');
+ }
+ else { // only for backward compatibility
+ $image = theme('image', $node->serial_data['image_view'], $node->title, $node->title, array('class' => 'video_image_view'), FALSE); //Create image HTML
+ }
+ $output = l($image, "node/$node->nid/play", array('title' => t('play') . ' ' . $node->title), NULL, NULL, FALSE, TRUE); //Create link HTML with image in it.
}
- $output = l($image, "node/$node->nid/play", array('title' => t('play') . ' ' . $node->title), NULL, NULL, FALSE, TRUE); //Create link HTML with image in it.
-
return $output;
}