Here's a simple way to see this:

1. Enable forum module
2. Create a content type, say 'forum two'.
3. Add the forum vocab field to it.
4. Observe that at /forum you get two node creation links, one for each content type that may appear in the forum
5. Delete the content type!
6. Return to /forum. The second link is still there, but now missing the content type name.

The $field array returned by field_info_field() still has the deleted content type in $field['bundles']['node'].

CommentFileSizeAuthor
#1 node_type_delete-787654.patch1 KByched

Comments

yched’s picture

Status: Active » Needs review
StatusFileSize
new1 KB

Ugh, node.module doesn't call field_attach_delete_bundle() when a node type is deleted ? Sounds a bit surprising.

bjaspan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.