From 97bc92f6b9a542b7f35ac230e0f3840127cbdef3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 18 Aug 2005 21:53:55 +0000 Subject: - Patch #29133 by DriesK: forum vid remains when vocabulary is deleted. Prevents forum topics from getting lost. --- modules/forum/forum.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 301a3f296..9e52108ca 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -134,6 +134,9 @@ function forum_taxonomy($op, $type, $object) { node_delete($edit); } } + elseif ($op == 'delete' && $type == 'vocabulary' && $object->vid == _forum_get_vid()) { + variable_del('forum_nav_vocabulary'); + } } /** -- cgit v1.2.3