=== modified file 'includes/menu.inc'
--- includes/menu.inc	2009-01-04 20:04:32 +0000
+++ includes/menu.inc	2009-01-11 19:12:14 +0000
@@ -1443,6 +1443,14 @@ function menu_local_tasks($level = 0, $r
       // Store the translated item for later use.
       $tasks[$item['path']] = $item;
     }
+    $additional_items = module_invoke_all('menu_add_tabs');
+    foreach ($additional_items as $item) {
+      if ($router_item = menu_get_item($item['path']) && $router_item['access']) {
+        $router_item['tab_parent'] = $item['tab_parent'];
+        $children[$router_item['tab_parent']][$router_item['path']] = $router_item;
+        $tasks[$router_item['path']] = $router_item;
+      }
+    }
 
     // Find all tabs below the current path.
     $path = $router_item['path'];

