On Sunday 29 July 2007 17:43:11 Cyberswat wrote:
If you write the uninstall hook to drop tables it becomes and option for the user to select. They are presented with an "uninstall" tab on the modules page. After disabling a module the user can click this tab to confirm dropping databases. In short Drupal's default functionality is extremely similar to what you describe.
I've just tried your suggestion. In uninstall() hook, I placed two db_query() statements that drop the tables. I disabled the module, visited the uninstall tab, clicked on the module to uninstall, however, no extra confirmation (besides the standard one) was offered.
Any ideas?