? video_downloadtab.patch
Index: video.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video/video.module,v
retrieving revision 1.52.2.6
diff -u -p -r1.52.2.6 video.module
--- video.module	14 Jan 2007 19:05:18 -0000	1.52.2.6
+++ video.module	15 Feb 2007 14:14:11 -0000
@@ -109,13 +109,19 @@ function video_menu($may_cache) {
           'type' => $menu_type);
 
         //If the video is of type youtube and multi-file downloads aren't turned on don't show the download tab.
-        if (variable_get('video_displaydownloadmenutab', 1) == 1 and (_video_get_filetype($node->vidfile) != 'youtube' and _video_get_filetype($node->vidfile) != 'googlevideo')) {
+        if (_video_get_filetype($node->vidfile) != 'youtube' and _video_get_filetype($node->vidfile) != 'googlevideo') {
+          if (variable_get('video_displayplaymenutab', 1) == 1) {
+            $menu_type = MENU_LOCAL_TASK;
+          }
+          else {
+            $menu_type = MENU_CALLBACK;
+          }
           $items[] = array('path' => 'node/'.arg(1).'/download',
             'title' => t('download'),
             'callback' => 'video_download',
             'access' => user_access('access video'),
             'weight' => 5,
-            'type' => MENU_LOCAL_TASK);
+            'type' => $menu_type);
         }
       }
     }
