19 Apr
2009
19 Apr
'09
2:21 a.m.
On Sat, Apr 18, 2009 at 8:11 AM, Larry Garfield <larry@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. -D