function xmlsitemap_uninstall in XML sitemap 7.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.2 xmlsitemap.install \xmlsitemap_uninstall()
- 6 xmlsitemap.install \xmlsitemap_uninstall()
- 2.x xmlsitemap.install \xmlsitemap_uninstall()
Implements hook_uninstall().
File
- ./
xmlsitemap.install, line 370 - Install, update and uninstall functions for the xmlsitemap module.
Code
function xmlsitemap_uninstall() {
drupal_load('module', 'xmlsitemap');
// Remove the file cache directory.
xmlsitemap_clear_directory(NULL, TRUE);
// Remove variables.
$variables = array_keys(xmlsitemap_variables());
foreach ($variables as $variable) {
variable_del($variable);
}
// Remove the queue.
/** @var DrupalReliableQueueInterface $queue */
$queue = DrupalQueue::get('xmlsitemap_link_process', TRUE);
$queue
->deleteQueue();
}