I have a cck FileField attached to a content type. When I remove a file from a node I want to remove the reference to the file but keep the file on the server. The reason for this is because we use IMCE on the site as well and other items may reference the image. Do you know if this is possibe?
Share
From looking at the code in FileField_delete here:
It looks like hook_file_references may come to your aid. However I can’t see many modules (other than filefield) that use this hook.
It would be possible for you to write your own module to track specific fields and implement your own hook_file_references. You could for example track specific cck values and query them when the hook is called.