[development] uninstall: deleting all variables of a module
domenic at workhabit.com
Sun Apr 19 00:21:10 UTC 2009
On Sat, Apr 18, 2009 at 8:11 AM, Larry Garfield <larry at garfieldtech.com> wrote:
> First, some node types may be deleted along the way before your module is
> disabled. For that, use this hook:
> For the uninstall hook, you can use node_get_types() to get a list of
> currently extant node types and iterate on that:
> And then use variable_del() like Stefan says.
With a caveat: this only makes sense if scheduler.module deletes a
node type's associated variable when the node type is also deleted.
More information about the development