xmlsitemap_custom.install in XML sitemap 2.x
Same filename and directory in other branches
Install and uninstall schema and functions for the xmlsitemap_custom module.
File
xmlsitemap_custom/xmlsitemap_custom.installView source
<?php
/**
* @file
* Install and uninstall schema and functions for the xmlsitemap_custom module.
*/
/**
* Implements hook_uninstall().
*/
function xmlsitemap_custom_uninstall() {
\Drupal::moduleHandler()
->load('xmlsitemap');
\Drupal::service('xmlsitemap.link_storage')
->deleteMultiple([
'type' => 'custom',
]);
}
Functions
Name | Description |
---|---|
xmlsitemap_custom_uninstall | Implements hook_uninstall(). |