diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-07 12:53:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-07 12:53:10 +0000 |
commit | 967d8d15546c2f12418f7ee640e6f173d9f2b74c (patch) | |
tree | c2be058c2242c67443a943eaecc19bbf99656d67 /modules/node/node.module | |
parent | 3a1c93a338ce9bb90537a470286adcc96ae18154 (diff) | |
download | brdo-967d8d15546c2f12418f7ee640e6f173d9f2b74c.tar.gz brdo-967d8d15546c2f12418f7ee640e6f173d9f2b74c.tar.bz2 |
- Patch #787654 by yched: deleting a bundle doesn't remove it from the data.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 3 |
1 files changed, 2 insertions, 1 deletions
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. |