[development] uninstall: deleting all variables of a module

Domenic Santangelo 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:
> http://api.drupal.org/api/function/hook_node_type/6
> For the uninstall hook, you can use node_get_types() to get a list of
> currently extant node types and iterate on that:
> http://api.drupal.org/api/function/node_get_types/6
> 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 mailing list