You are here

function xmlsitemap_uninstall in XML sitemap 6.2

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

Implements hook_uninstall().

File

./xmlsitemap.install, line 340
Install, update and uninstall functions for the xmlsitemap module.

Code

function xmlsitemap_uninstall() {

  // Remove tables.
  drupal_uninstall_schema('xmlsitemap');

  // Remove variables.
  drupal_load('module', 'xmlsitemap');
  $variables = array_keys(xmlsitemap_variables());
  foreach ($variables as $variable) {
    variable_del($variable);
  }

  // Remove the file cache directory.
  xmlsitemap_clear_directory(NULL, TRUE);
}