Have a module built that calls a node_type_delete('recipe'); within the node_type_delete I see that there is an invocation of module_invoke_all('node_type', 'delete', $info); which calls the content_node_type() within content.module. Then within that function there is a call to the content_type_delete() function within content_crud.inc which is where the error is occuring.

warning: Invalid argument supplied for foreach() in ./sites/all/modules/cck/content_crud.inc on line 105.

Checking the database everything is removed properly except for the content_type_recipe table.

CommentFileSizeAuthor
#2 264372.patch593 bytesstella

Comments

Anonymous’s picture

Version: 5.x-1.x-dev » 5.x-1.7
Status: Needs review » Active
stella’s picture

Version: 5.x-1.7 » 5.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new593 bytes

I'm not getting the issue identified above, but I'm getting a similar one, also when calling node_type_delete(), where content_alter_db_field() on line 335 is undeclared.

The attached patch fixes it for me.

karens’s picture

Version: 5.x-1.7 » 5.x-1.x-dev
Status: Active » Closed (won't fix)

The D5 version is no longer being supported. Sorry.