diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-08-18 21:53:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-08-18 21:53:55 +0000 |
commit | 97bc92f6b9a542b7f35ac230e0f3840127cbdef3 (patch) | |
tree | bb3b74cb81c10326051ed307aa2bc67f77d2b23e /modules/forum/forum.module | |
parent | aa39f5c787ca3ef6f8365b33ea5708112fb7acca (diff) | |
download | brdo-97bc92f6b9a542b7f35ac230e0f3840127cbdef3.tar.gz brdo-97bc92f6b9a542b7f35ac230e0f3840127cbdef3.tar.bz2 |
- Patch #29133 by DriesK: forum vid remains when vocabulary is deleted. Prevents forum topics from getting lost.
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 3 |
1 files changed, 3 insertions, 0 deletions
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'); + } } /** |