Commit c48188aa authored by Gábor Hojtsy's avatar Gábor Hojtsy

#201479 by chx, ximo: forum module requires taxonomy for uninstall but...

#201479 by chx, ximo: forum module requires taxonomy for uninstall but taxonomy might be disabled at that time, so we need to include it
parent 789cba51
......@@ -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'");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment