You are here

function xmlsitemap_robotstxt in XML sitemap 5

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_robotstxt()
  2. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_robotstxt()
  3. 6.2 xmlsitemap.module \xmlsitemap_robotstxt()
  4. 6 xmlsitemap.module \xmlsitemap_robotstxt()
  5. 7.2 xmlsitemap.module \xmlsitemap_robotstxt()
  6. 2.x xmlsitemap.module \xmlsitemap_robotstxt()

Implementation of hook_robotstxt().

Related topics

File

./xmlsitemap.module, line 323
Creates a site map compatible with the sitemaps.org schema.

Code

function xmlsitemap_robotstxt() {
  return array(
    "Sitemap: " . xmlsitemap_url('sitemap.xml', drupal_lookup_path('alias', 'sitemap.xml') ? drupal_lookup_path('alias', 'sitemap.xml') : NULL, NULL, NULL, TRUE),
  );
}