You are here

robotstxt_test.module in RobotsTxt 7

File

tests/robotstxt_test.module
View source
<?php

/**
 * Implements hook_menu().
 *
 * We add a second menu route because SimpleTest cannot delete the robots.txt
 * file from the docroot.
 */
function robotstxt_test_menu() {
  $items = array();
  $items['robots-test.txt'] = array(
    'page callback' => 'robotstxt_robots',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}

Functions

Namesort descending Description
robotstxt_test_menu Implements hook_menu().