--- video_orig/video.module 2009-04-24 17:30:48.000000000 -0700 +++ video/video.module 2009-05-01 13:12:40.000000000 -0700 @@ -251,6 +251,12 @@ '#default_value' => variable_get('video_displaydownloadmenutab', 1), '#description' => t('Toggle display of menu tab to download video from the node page.') ); + $form['menu']['video_in_teaser'] = array( + '#type' => 'checkbox', + '#title' => t('Display video in node teaser'), + '#default_value' => variable_get('video_in_teaser', FALSE), + '#description' => t('Display the video in the node teaser. For instance, when shown on the front page feed') + ); $form['menu']['video_displaydownloadlink'] = array( '#type' => 'checkbox', '#title' => t('Display download link'), @@ -815,10 +821,10 @@ //print_r($node); //exit; // theme the teaser - $node->teaser = theme('video_teaser', $node, $teaser, $page); + //$node->teaser = theme('video_teaser', $node, $teaser, $page); // if we are viewing the page, run the body through the theme - if ($page) { + if ($page || variable_get('video_in_teaser', FALSE)) { $output = ''; if (user_access('play video')) { $node->content['video_player'] = array('#value' => theme('video_player', $node), '#weight' => -1);