function xmlsitemap_custom_uninstall in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
- 6.2 xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
- 7.2 xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
Implements hook_uninstall().
File
- xmlsitemap_custom/
xmlsitemap_custom.install, line 11 - Install and uninstall schema and functions for the xmlsitemap_custom module.
Code
function xmlsitemap_custom_uninstall() {
\Drupal::moduleHandler()
->load('xmlsitemap');
\Drupal::service('xmlsitemap.link_storage')
->deleteMultiple([
'type' => 'custom',
]);
}