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