From 967d8d15546c2f12418f7ee640e6f173d9f2b74c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 7 May 2010 12:53:10 +0000 Subject: - Patch #787654 by yched: deleting a bundle doesn't remove it from the data. --- modules/node/node.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 675167128..d751a511b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -445,7 +445,7 @@ function node_type_get_name($node) { * * All new module-defined node types are saved to the database via a call to * node_type_save(), and obsolete ones are deleted via a call to - * node_type_delete(). See _node_types_build() for an explanation of the new + * node_type_delete(). See _node_types_build() for an explanation of the new * and obsolete types. */ function node_types_rebuild() { @@ -611,6 +611,7 @@ function node_type_delete($type) { db_delete('node_type') ->condition('type', $type) ->execute(); + field_attach_delete_bundle('node', $type); module_invoke_all('node_type_delete', $info); // Clear the node type cache. -- cgit v1.2.3