You are here

function biblio_uninstall in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 biblio.install \biblio_uninstall()
  2. 6 biblio.install \biblio_uninstall()
  3. 7 biblio.install \biblio_uninstall()
  4. 7.2 biblio.install \biblio_uninstall()

File

./biblio.install, line 337

Code

function biblio_uninstall() {
  $result = db_query("SELECT * FROM {node} where type='biblio' ");
  while ($row = db_fetch_object($result)) {
    node_delete($row->nid);
  }
  db_query("DROP TABLE {biblio} ");
  db_query("DROP TABLE {biblio_types} ");
  db_query("DROP TABLE {biblio_fields} ");
  db_query("DROP TABLE {biblio_type_details} ");
  db_query("DROP TABLE {biblio_author_index} ");
  db_query("DROP TABLE {biblio_has_author} ");
  variable_del('biblio_base');
  variable_del('biblio_baseopenurl');
  variable_del('biblio_auto_citekey');
  variable_del('biblio_citekey_prefix');
  variable_del('biblio_citekey_field1');
  variable_del('biblio_citekey_field2');
  variable_del('biblio_footnotes_integration');
  variable_del('biblio_freetagging_vocab');
  variable_del('biblio_keyword_freetagging');
  variable_del('biblio_links_target_new_window');
  variable_del('biblio_max_user_tid');
  variable_del('biblio_node_layout');
  variable_del('biblio_normalize');
  variable_del('biblio_openurlimage');
  variable_del('biblio_order');
  variable_del('biblio_rowsperpage');
  variable_del('biblio_rss');
  variable_del('biblio_rss_number_of_entries');
  variable_del('biblio_sort');
  variable_del('biblio_sort_tabs');
  variable_del('biblio_style');
  variable_del('biblio_view_only_own');
  variable_del('biblio_annotations');
}