Display Local tasks from one page to another I have a menu structure like this:


$items["foo"] -> MENU_NORMAL_ITEM
$items["foo/bar"] -> MENU_DEFAULT_LOCAL_TASK
$items["foo/something"] -> MENU_LOCAL_TASK
$items["foo/bar/bazz/%"] -> MENU_CALLBACK


I want to have the tabs (local tasks) from page foo/bar displayed on foo/bar/bazz/% as well but I don't want to have another local task for this new page.

Any ideas on how can I achieve that? Thanks.
I kinda managed to to this by using the following piece of code:

$path = drupal_get_normal_path('path-where-local-tasks-are-displayed');
if($path) {
  menu_tree_set_path("navigation", $path);
  menu_set_active_item($path);
}