function xmlsitemap_uninstall in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.install \xmlsitemap_uninstall()
- 5.2 xmlsitemap/xmlsitemap.install \xmlsitemap_uninstall()
- 5 xmlsitemap.install \xmlsitemap_uninstall()
- 6 xmlsitemap.install \xmlsitemap_uninstall()
- 7.2 xmlsitemap.install \xmlsitemap_uninstall()
- 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);
}