You are here

function hook_simple_sitemap_sitemap_generators_alter in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 simple_sitemap.api.php \hook_simple_sitemap_sitemap_generators_alter()

Alter properties of and remove sitemap generator plugins.

Parameters

array $sitemap_generators:

1 invocation of hook_simple_sitemap_sitemap_generators_alter()
SitemapGeneratorManager::__construct in src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorManager.php
SitemapGeneratorManager constructor.

File

./simple_sitemap.api.php, line 123
Hooks provided by the Simple XML Sitemap module.

Code

function hook_simple_sitemap_sitemap_generators_alter(array &$sitemap_generators) {

  // Remove the default generator.
  unset($sitemap_generators['default']);
}