robotstxt.api.php in RobotsTxt 8
Same filename and directory in other branches
Hooks provided by the robotstxt module.
File
robotstxt.api.phpView source
<?php
/**
* @file
* Hooks provided by the robotstxt module.
*/
/**
* Add additional lines to the site's robots.txt file.
*
* @return array
* An array of strings to add to the robots.txt.
*/
function hook_robotstxt() {
return [
'Disallow: /foo',
'Disallow: /bar',
];
}
Functions
Name | Description |
---|---|
hook_robotstxt | Add additional lines to the site's robots.txt file. |