xmlsitemap_engines.api.php 643 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Hooks provided by the XML sitemap engines module.
  5. */
  6. /**
  7. * @addtogroup hooks
  8. * @{
  9. */
  10. /**
  11. * Provide a list of supported sitemap engines.
  12. */
  13. function hook_xmlsitemap_engine_info() {
  14. $engines['example'] = array(
  15. 'name' => t('Example search engine'),
  16. 'url' => 'http://example.com/ping?sitemap=[sitemap]',
  17. );
  18. return $engines;
  19. }
  20. /**
  21. * Alter the list of sitemap engines.
  22. */
  23. function hook_xmlsitemap_engine_info_alter(&$engines) {
  24. $engines['example']['name'] = t('Kitten Search');
  25. $engines['example']['url'] = 'http://kittens.com/ping?sitemap=[sitemap]';
  26. }
  27. /**
  28. * @} End of "addtogroup hooks".
  29. */