You are here

function quicktabs_uninstall in Quick Tabs 5

Same name and namespace in other branches
  1. 6.3 quicktabs.install \quicktabs_uninstall()
  2. 6 quicktabs.install \quicktabs_uninstall()
  3. 6.2 quicktabs.install \quicktabs_uninstall()

File

./quicktabs.install, line 39

Code

function quicktabs_uninstall() {
  if (db_table_exists('quicktabs')) {
    db_query("DROP TABLE {quicktabs}");
  }

  // Delete any variables that have been set.
  // We don't just DELETE FROM {variable}, even though we could.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'quicktabs_%'");

  // Instead we use the API, because API's can change!
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
}