summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-07 12:53:10 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-07 12:53:10 +0000
commit967d8d15546c2f12418f7ee640e6f173d9f2b74c (patch)
treec2be058c2242c67443a943eaecc19bbf99656d67 /modules/node
parent3a1c93a338ce9bb90537a470286adcc96ae18154 (diff)
downloadbrdo-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')
-rw-r--r--modules/node/node.module3
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.