Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.6
Component:
content.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2010 at 14:20 UTC
Updated:
20 Jun 2011 at 19:04 UTC
Hello,
I'm trying to delete a content type programmatically from a custom module instead of deleting it from the admin/content/types and clicking on the delete link for a given content type.
I found that running the function node_type_delete('content_type'); and although it works to remove the content type from the system, the content type is still being displayed in the menu when click on "Create Content".
Thanks for your help,
Comments
Comment #1
rogueturnip commentedI'm seeing this also with CCK 6.x-3. Funny thing after I remove it manually the custom module no longer will create the node type when it's reinstalled.
Any solutions yet?
Comment #2
ifuyivara commentedDid you try calling node_types_rebuild() after you remove the content type?