Commit f9582724 authored by andrei.dincu's avatar andrei.dincu
Browse files

Issue #2249723 by andrei.dincu: Port xmlsitemap_custom.install to D8 version

parent 3ea84574
......@@ -4,11 +4,12 @@
* @file
* Install and uninstall schema and functions for the xmlsitemap_custom module.
*/
use Drupal\xmlsitemap\XmlSitemapLinkStorage;
/**
* Implements hook_uninstall().
*/
function xmlsitemap_custom_uninstall() {
drupal_load('module', 'xmlsitemap');
xmlsitemap_link_delete_multiple(array('type' => 'custom'));
\Drupal::moduleHandler()->load('xmlsitemap');
XmlSitemapLinkStorage::linkDeleteMultiple(array('type' => 'custom'));
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment