You are here

function biblio_citeproc_uninstall in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_uninstall()
  2. 7.2 modules/CiteProc/biblio_citeproc.install \biblio_citeproc_uninstall()

File

modules/CiteProc/biblio_citeproc.install, line 45

Code

function biblio_citeproc_uninstall() {
  if (db_table_exists('biblio_type_maps')) {
    db_delete('biblio_type_maps')
      ->condition('format', 'csl')
      ->execute();
  }
  if ($file = variable_get('biblio_citeproc_styles_zip_file', NULL)) {
    file_usage_delete($file, 'biblio_citeproc');
    file_delete($file);
  }
  cache_clear_all('biblio_citeproc_styles', 'cache');
  variable_del('biblio_citeproc_styles_zip_file');
  variable_del('biblio_citeproc_style');
}