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 | |
parent | 49481f68f4573b862aa184a46690d1ec987dd244 (diff) | |
download | brdo-e14c3aa6c0707c18005146f5311f0db0d5a1af3f.tar.gz brdo-e14c3aa6c0707c18005146f5311f0db0d5a1af3f.tar.bz2 |
- Patch #79498 by Eaton: fixed editing comments and nodes.
-rw-r--r-- | modules/comment/comment.module | 4 | ||||
-rw-r--r-- | modules/node/node.module | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 3547d2d61..7aaed2fc7 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -136,8 +136,8 @@ function comment_menu($may_cache) { $access = user_access('post comments'); $items[] = array('path' => 'comment/edit', 'title' => t('edit comment'), - 'callback' => 'drupal_get_form', - 'callback arguments' => array('comment_edit'), 'access' => $access, 'type' => MENU_CALLBACK); + 'callback' => 'comment_edit', + 'access' => $access, 'type' => MENU_CALLBACK); } else { if (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2))) { 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); |