commit 3458621925333b488d38b1973dbcd20cc12b7736 Author: Lee Rowlands Date: Wed Jul 17 18:00:55 2013 +1000 Fix for modules enable/disable test diff --git a/core/modules/forum/forum.install b/core/modules/forum/forum.install index 3271a7c..682e2ae 100644 --- a/core/modules/forum/forum.install +++ b/core/modules/forum/forum.install @@ -122,6 +122,13 @@ function forum_uninstall() { $field->delete(); } + // Load the dependent Comment module, in case it has been disabled. + drupal_load('module', 'comment'); + + if ($field = field_info_field('comment_node_forum')) { + $field->delete(); + } + // Purge field data now to allow taxonomy module to be uninstalled // if this is the only field remaining. field_purge_batch(10);