From 65b99dc85fde083cca0938634bb15c4e1779c50d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 7 Oct 2010 00:28:20 +0000 Subject: #895014 by Damien Tournoud, chx, catch: Fixed all fields of a node type are lost on module disable. --- includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 7195e985e..1123b1c9a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6727,8 +6727,10 @@ function drupal_flush_all_caches() { system_rebuild_theme_data(); drupal_theme_rebuild(); - menu_rebuild(); node_types_rebuild(); + // node_menu() defines menu items based on node types so it needs to come + // after node types are rebuilt. + menu_rebuild(); // Synchronize to catch any actions that were added or removed. actions_synchronize(); -- cgit v1.2.3