diff options
-rw-r--r-- | modules/forum/forum.install | 5 |
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'"); |