diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-16 13:45:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-16 13:45:17 +0000 |
commit | a243145d3fef5996394518a2a3a9f8254ed2202a (patch) | |
tree | bc4306713d48882a357e36d3b82661870c179dd8 /modules/node | |
parent | b4ef53eccc40dd8605a625adbacb603d93fb3acc (diff) | |
download | brdo-a243145d3fef5996394518a2a3a9f8254ed2202a.tar.gz brdo-a243145d3fef5996394518a2a3a9f8254ed2202a.tar.bz2 |
- Patch #137767 by chx and pwolanin: multiple menu support.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/content_types.inc | 2 | ||||
-rw-r--r-- | modules/node/node.module | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index ae6ba1e06..91ec2ac86 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -320,7 +320,7 @@ function node_type_form_submit($form_values, $form, &$form_state) { } node_types_rebuild(); - // menu_rebuild clears the cache, too + cache_clear_all(); menu_rebuild(); $t_args = array('%name' => $type->name); diff --git a/modules/node/node.module b/modules/node/node.module index 8113c6cdd..27f0bce96 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1248,6 +1248,7 @@ function node_menu() { 'title' => 'Edit', 'page callback' => 'node_page_edit', 'page arguments' => array(1), + 'access callback' => 'node_access', 'access arguments' => array('update', 1), 'weight' => 1, 'type' => MENU_LOCAL_TASK); @@ -1255,6 +1256,7 @@ function node_menu() { 'title' => 'Delete', 'page callback' => 'drupal_get_form', 'page arguments' => array('node_delete_confirm', 1), + 'access callback' => 'node_access', 'access arguments' => array('delete', 1), 'weight' => 1, 'type' => MENU_CALLBACK); |