summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--page_manager/page_manager.module9
1 files changed, 7 insertions, 2 deletions
diff --git a/page_manager/page_manager.module b/page_manager/page_manager.module
index 57b6ae2..a6e0d14 100644
--- a/page_manager/page_manager.module
+++ b/page_manager/page_manager.module
@@ -171,8 +171,13 @@ function page_manager_admin_paths() {
$path_parts[$key] = '*';
}
}
- $path_parts = implode('/', $path_parts);
- $items[$path_parts] = TRUE;
+ $path = implode('/', $path_parts);
+ array_pop($path_parts);
+ $parent_path = implode('/', $path_parts);
+ if ($page->menu['type'] == 'default tab') {
+ $items[$parent_path] = TRUE;
+ }
+ $items[$path] = TRUE;
}
}
return $items;