2

I need to write an uninstall use-case for my custom entity. I just want to know what operations I should take care of, in order to completely uninstall my entity/module and all attached fields (including custom fields created by Field API).

Should I use hook_uninstall and how should I implement this hook?

1

The tables declared by the hook_schema() will be automatically remove when you uninstall your module.

If you need to remove other tables or variables use the hook_uninstall()

1

I think the use of function field_attach_delete_bundle would be a better approache here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.