You are here

function xmlsitemap_uninstall in XML sitemap 5

Same name and namespace in other branches
  1. 8 xmlsitemap.install \xmlsitemap_uninstall()
  2. 5.2 xmlsitemap/xmlsitemap.install \xmlsitemap_uninstall()
  3. 6.2 xmlsitemap.install \xmlsitemap_uninstall()
  4. 6 xmlsitemap.install \xmlsitemap_uninstall()
  5. 7.2 xmlsitemap.install \xmlsitemap_uninstall()
  6. 2.x xmlsitemap.install \xmlsitemap_uninstall()

Implementation of hook_uninstall().

File

./xmlsitemap.install, line 118

Code

function xmlsitemap_uninstall() {
  db_query("DROP TABLE {xmlsitemap_additional}");
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'xmlsitemap\\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}