You are here

robotstxt.api.php in RobotsTxt 7

Same filename and directory in other branches
  1. 8 robotstxt.api.php
  2. 6 robotstxt.api.php

Hooks provided by the robotstxt module.

File

robotstxt.api.php
View 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 array(
    'Disallow: /foo',
    'Disallow: /bar',
  );
}

Functions

Namesort descending Description
hook_robotstxt Add additional lines to the site's robots.txt file.