From c48188aab044139727641f2ef6e66b6f00b9c6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 20 Dec 2007 21:50:11 +0000 Subject: #201479 by chx, ximo: forum module requires taxonomy for uninstall but taxonomy might be disabled at that time, so we need to include it --- modules/forum/forum.install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.install b/modules/forum/forum.install index 7d2d0c428..62035955f 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -38,8 +38,11 @@ function forum_enable() { * Implementation of hook_uninstall(). */ function forum_uninstall() { - $vid = variable_get('forum_nav_vocabulary', ''); + // Load the dependent Taxonomy module, in case it has been disabled. + drupal_load('module', 'taxonomy'); + // Delete the vocabulary. + $vid = variable_get('forum_nav_vocabulary', ''); taxonomy_del_vocabulary($vid); db_query("DELETE FROM {node} WHERE type = 'forum'"); -- cgit v1.2.3