You are here

function robotstxt_menu in RobotsTxt 7

Same name and namespace in other branches
  1. 5 robotstxt.module \robotstxt_menu()
  2. 6 robotstxt.module \robotstxt_menu()

Implements hook_menu().

File

./robotstxt.module, line 36

Code

function robotstxt_menu() {
  $items['robots.txt'] = array(
    'page callback' => 'robotstxt_robots',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/search/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;
}