Skip to content

Commit

Permalink
Adding an access handler so the 'add sub-page' tab only appears on no…
Browse files Browse the repository at this point in the history
…des in the main-menu (without this, nodes in other menus get the tab, but it goes to a 404 page).
  • Loading branch information
jhedstrom committed Feb 8, 2012
1 parent dd1f532 commit 4594a08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions os_base.pages_default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ function os_base_default_page_manager_pages() {
),
'context' => 'logged-in-user',
),
2 => array(
'name' => 'node_menu',
'settings' => array(
'menu' => 'main-menu',
),
'context' => 'argument_nid_1',
'not' => FALSE,
),
),
'logic' => 'and',
'type' => 'none',
Expand Down

0 comments on commit 4594a08

Please sign in to comment.