diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 919854f64..1457cfdc1 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1048,12 +1048,13 @@ function node_menu($may_cache) { 'callback arguments' => array('node_type_form'), 'type' => MENU_LOCAL_TASK, ); - - $items[] = array('path' => 'node', 'title' => t('content'), + $items[] = array('path' => 'node', + 'title' => t('content'), 'callback' => 'node_page_default', 'access' => user_access('access content'), 'type' => MENU_MODIFIABLE_BY_ADMIN); - $items[] = array('path' => 'node/add', 'title' => t('create content'), + $items[] = array('path' => 'node/add', + 'title' => t('create content'), 'callback' => 'node_add', 'access' => user_access('access content'), 'type' => MENU_ITEM_GROUPING, @@ -1092,8 +1093,8 @@ function node_menu($may_cache) { 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'), - 'callback' => 'drupal_get_form', - 'callback arguments' => array('node_page_edit', $node), + 'callback' => 'node_page_edit', + 'callback arguments' => array($node), 'access' => node_access('update', $node), 'weight' => 1, 'type' => MENU_LOCAL_TASK); |