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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 264372.patch | 593 bytes | stella |
Comments
Comment #1
Anonymous (not verified) commentedComment #2
stella commentedI'm not getting the issue identified above, but I'm getting a similar one, also when calling
node_type_delete(), wherecontent_alter_db_field()on line 335 is undeclared.The attached patch fixes it for me.
Comment #3
karens commentedThe D5 version is no longer being supported. Sorry.