What should a well-behaved package do for uninstall cleanup?
Permalink 1 user found helpfulThanks,
Donna
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
If you pass the package variable that gets created in the install() method to your blocks when you create them (which you will have to do, or concrete5 won't be able to find them) then they should be uninstalled automatically if the package is uninstalled. A good way to test this is to install the package, then go to uninstall it. concrete5 should list all the items that are associated with this package, and will automatically remove them when the package is uninstalled.
Now, we don't automatically remove database tables in this process, so you could potentially override the uninstall method and drop the tables manually, but I don't really believe its necessary. In the core, in the future, we might actually do this, but right now we're not.