function forum_uninstall

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/forum/forum.install \forum_uninstall()

Implementation of hook_uninstall().

Archivo

drupal-6.x/modules/forum/forum.install, line 44

Código

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');
}