Commit 4498057d authored by Dries's avatar Dries
Browse files

- Patch #408160 by sun: code simplification.

parent 298aaaa0
......@@ -1895,15 +1895,13 @@ 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' => '',
'menu_name' => 'navigation',
'type' => MENU_CALLBACK,
);
$items['node/add'] = array(
'title' => 'Add content',
'page callback' => 'node_add_page',
'access callback' => '_node_add_access',
'menu_name' => 'navigation',
'theme callback' => '_node_custom_theme',
'file' => 'node.pages.inc',
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment