[support] Custom module uninstall() hook
Vasileios Lourdas
lourdas_v at yahoo.gr
Tue Jul 31 11:32:58 UTC 2007
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?
--
# Vasileios Lourdas,
# Informatics Engineer, Thessaloniki (Greece)
# http://www.lourdas.name
More information about the support
mailing list