summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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.