When trying to delete a field that is part of your form, the following error is produced.

*****************************
Fatal error: Call to undefined function content_field_instance_delete() in /home/mysite/public_html/modules/cck/content_admin.inc on line 739

Comments

ycim’s picture

Additionally, trying to delete the content type results in the following error

***************************
Fatal error: Call to undefined function content_type_delete() in /home/mysite/public_html/modules/cck/content_admin.inc on line 216

l0rne’s picture

I found the content_type_delete() function in the file content_crud.ini.

Editing content.module, I found the folowing line:

include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');

and added this line right under it:

include_once('./'. drupal_get_path('module', 'content') .'/content_crud.inc');

Given the name of the file in which I found the function, I'm nervous about how dangerous it will be to enable it, but after i did this, I was able to delete a content type.

karens’s picture

This is the same problem as in http://drupal.org/node/107836. A new release will be created early tomorrow that will fix this. In the meantime, use the nightly snapshot to get it (the file that ends in -dev).

karens’s picture

Status: Active » Fixed

A new release has been issued, version 1.2, that will fix this problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)