Or, you could just call module_invoke('yourmodule', 'uninstall') inside of hook_disable. This will make disabling equivalent to uninstalling for that particular module. But, you're not going to do that because we've convinced you that nuking all a module's data when it is disabled is a bad idea, right?
↧