diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-19 21:40:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-19 21:40:58 +0000 |
commit | e14c3aa6c0707c18005146f5311f0db0d5a1af3f (patch) | |
tree | 088efef0b3d9fdf284a5d4b02d07f7440da866dd /modules/node/node.module | |
parent | 49481f68f4573b862aa184a46690d1ec987dd244 (diff) | |
download | brdo-e14c3aa6c0707c18005146f5311f0db0d5a1af3f.tar.gz brdo-e14c3aa6c0707c18005146f5311f0db0d5a1af3f.tar.bz2 |
- Patch #79498 by Eaton: fixed editing comments and nodes.
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); |