You are here

function similarterms_uninstall in Similar By Terms 5

Implementation of hook_uninstall().

File

./similarterms.install, line 60
Similar By Terms install file

Code

function similarterms_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $deleted = db_query('DROP TABLE IF EXISTS {cache_similarterms}');
      $deleted2 = db_query('DROP TABLE IF EXISTS {similarterms_override}');
      break;
    case 'pgsql':
      $deleted = db_query('DROP TABLE {cache_similarterms}');
      $deleted2 = db_query('DROP TABLE {similarterms_override}');
      break;
  }
}