Hooks not removed when package uninstalled
March 14, 2014, 03:02:12 am
Testing with spuds hideusernames packages (and my own package) I noticed that after uninstalling the package the integrate_xxx hook variables are still set in the settings table of the database.
Re: Hooks not removed when package uninstalled
Reply #3 – March 14, 2014, 07:29:11 pm
I tested with spuds hide user names package. You can find a copy attached in the thread about errors installing a package.
Re: Hooks not removed when package uninstalled
Reply #4 – March 14, 2014, 09:52:31 pm
I see the problem. I believe you have already fixed it just in a later version of the trunk than I have. In remove_integration_hook if (strpos($funcfile, '|') !== false) should be if (strpos($filefunc , '|') !== false) Not sure if you care about this, but if the last function for a particular hook is removed the database entry still exists just with an empty value.