summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 21:50:11 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 21:50:11 +0000
commitc48188aab044139727641f2ef6e66b6f00b9c6c9 (patch)
treee9548d1d6ef2237ea397e810b304d658b51886c8 /modules
parent789cba51f54fbfad21c33b3e2c9cbcbc10c46ff2 (diff)
downloadbrdo-c48188aab044139727641f2ef6e66b6f00b9c6c9.tar.gz
brdo-c48188aab044139727641f2ef6e66b6f00b9c6c9.tar.bz2
#201479 by chx, ximo: forum module requires taxonomy for uninstall but taxonomy might be disabled at that time, so we need to include it
Diffstat (limited to 'modules')
-rw-r--r--modules/forum/forum.install5
1 files changed, 4 insertions, 1 deletions
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'");