You are here

function forum_uninstall in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/forum/forum.install \forum_uninstall()
  2. 5 modules/forum/forum.install \forum_uninstall()
  3. 7 modules/forum/forum.install \forum_uninstall()
  4. 9 core/modules/forum/forum.install \forum_uninstall()

Implementation of hook_uninstall().

File

modules/forum/forum.install, line 44

Code

function forum_uninstall() {

  // 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('DROP TABLE {forum}');
  variable_del('forum_containers');
  variable_del('forum_nav_vocabulary');
  variable_del('forum_hot_topic');
  variable_del('forum_per_page');
  variable_del('forum_order');
  variable_del('forum_block_num_0');
  variable_del('forum_block_num_1');
}