diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-20 08:15:33 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-20 08:15:33 +0000 |
commit | af2b5e7d86a94fc7d0834e2ef0e44036d28cae3b (patch) | |
tree | 408410031d5b3b5e121f3489ca6dc270f295d03b | |
parent | fd94ba27482d5a5c24292d3fef9ccc3797ba5706 (diff) | |
download | brdo-af2b5e7d86a94fc7d0834e2ef0e44036d28cae3b.tar.gz brdo-af2b5e7d86a94fc7d0834e2ef0e44036d28cae3b.tar.bz2 |
#408160 by sun, Berdir, Gábor Hojtsy, David_Rothstein: Fixed move Add new content link to Navigation menu.
-rw-r--r-- | modules/node/node.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 80d30b62e..b519d637a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1893,14 +1893,15 @@ function node_menu() { $items['node'] = array( 'page callback' => 'node_page_default', 'access arguments' => array('access content'), + // Required to make 'node/add' appear on the top-level of 'navigation' menu. + 'menu_name' => '', 'type' => MENU_CALLBACK, ); $items['node/add'] = array( - 'title' => 'Add new content', + 'title' => 'Add content', 'page callback' => 'node_add_page', 'access callback' => '_node_add_access', - 'weight' => 1, - 'menu_name' => 'management', + 'menu_name' => 'navigation', 'theme callback' => '_node_custom_theme', 'file' => 'node.pages.inc', ); |