function robotstxt_menu in RobotsTxt 5
Same name and namespace in other branches
- 6 robotstxt.module \robotstxt_menu()
- 7 robotstxt.module \robotstxt_menu()
Defines the robots.txt path as a callback.
File
- ./
robotstxt.module, line 24
Code
function robotstxt_menu($maycache) {
$items = array();
if ($maycache) {
$items[] = array(
'path' => 'robots.txt',
'access' => TRUE,
'callback' => 'robotstxt_robots',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/robotstxt',
'title' => t('RobotsTxt'),
'description' => t('Manage your robots.txt file.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'robotstxt_admin_settings',
),
'access' => user_access('administer site configuration'),
);
}
return $items;
}