function xmlsitemap_robotstxt in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_robotstxt()
- 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_robotstxt()
- 5 xmlsitemap.module \xmlsitemap_robotstxt()
- 6 xmlsitemap.module \xmlsitemap_robotstxt()
- 7.2 xmlsitemap.module \xmlsitemap_robotstxt()
- 2.x xmlsitemap.module \xmlsitemap_robotstxt()
Implements hook_robotstxt().
File
- ./
xmlsitemap.module, line 248 - Main file for the xmlsitemap module.
Code
function xmlsitemap_robotstxt() {
if ($sitemap = xmlsitemap_sitemap_load_by_context()) {
$robotstxt[] = 'Sitemap: ' . url($sitemap->uri['path'], $sitemap->uri['options']);
return $robotstxt;
}
}