function robotstxt_menu in RobotsTxt 6
Same name and namespace in other branches
- 5 robotstxt.module \robotstxt_menu()
- 7 robotstxt.module \robotstxt_menu()
Implementation of hook_menu().
File
- ./
robotstxt.module, line 31
Code
function robotstxt_menu() {
$items['robots.txt'] = array(
'page callback' => 'robotstxt_robots',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/settings/robotstxt'] = array(
'title' => 'RobotsTxt',
'description' => 'Manage your robots.txt file.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'robotstxt_admin_settings',
),
'access arguments' => array(
'administer robots.txt',
),
'file' => 'robotstxt.admin.inc',
);
return $items;
}