From 0d8adb439d47d2f30fc0d4edee029f40d3145316 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 10 Sep 2009 22:10:10 +0000 Subject: #306316 follow-up by catch: Revert coupling of node_types_rebuild() and menu_rebuild(). --- modules/node/content_types.inc | 2 ++ modules/node/node.module | 2 -- modules/system/system.admin.inc | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 223609041..8a5adaf93 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -350,6 +350,7 @@ function node_type_form_submit($form, &$form_state) { } node_types_rebuild(); + menu_rebuild(); $t_args = array('%name' => $type->name); if ($status == SAVED_UPDATED) { @@ -444,6 +445,7 @@ function node_type_delete_confirm_submit($form, &$form_state) { watchdog('menu', 'Deleted content type %name.', $t_args, WATCHDOG_NOTICE); node_types_rebuild(); + menu_rebuild(); $form_state['redirect'] = 'admin/structure/types'; return; diff --git a/modules/node/node.module b/modules/node/node.module index 62c11ce83..a9128ff88 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -465,8 +465,6 @@ function node_types_rebuild() { // Reset cached node type information so that the next access // will use the updated data. node_type_clear(); - // This is required for proper menu items at node/add/type. - menu_rebuild(); } /** diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 2d1875e74..bd7f54eff 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1000,6 +1000,7 @@ function system_modules_submit($form, &$form_state) { registry_rebuild(); drupal_theme_rebuild(); node_types_rebuild(); + menu_rebuild(); cache_clear_all('schema', 'cache'); cache_clear_all('entity_info', 'cache'); drupal_clear_css_cache(); -- cgit v1.2.3