function hook_robotstxt in RobotsTxt 7
Same name and namespace in other branches
- 8 robotstxt.api.php \hook_robotstxt()
- 6 robotstxt.api.php \hook_robotstxt()
Add additional lines to the site's robots.txt file.
Return value
array An array of strings to add to the robots.txt.
1 invocation of hook_robotstxt()
- robotstxt_robots in ./
robotstxt.module - Show the robots.txt file.
File
- ./
robotstxt.api.php, line 14 - Hooks provided by the robotstxt module.
Code
function hook_robotstxt() {
return array(
'Disallow: /foo',
'Disallow: /bar',
);
}