You are here

function xmlsitemap_menu in XML sitemap 6.2

Same name and namespace in other branches
  1. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_menu()
  2. 5 xmlsitemap.module \xmlsitemap_menu()
  3. 6 xmlsitemap.module \xmlsitemap_menu()
  4. 7.2 xmlsitemap.module \xmlsitemap_menu()

Implements hook_menu().

1 string reference to 'xmlsitemap_menu'
XMLSitemapMenuFunctionalTest::setUp in xmlsitemap_menu/xmlsitemap_menu.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

./xmlsitemap.module, line 109
Main file for the xmlsitemap module.

Code

function xmlsitemap_menu() {
  $items['admin/settings/xmlsitemap'] = array(
    'title' => 'XML sitemap',
    'description' => "Configure your site's XML sitemaps to help search engines find and index pages on your site.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_sitemap_list_form',
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'file' => 'xmlsitemap.admin.inc',
  );
  $items['admin/settings/xmlsitemap/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/xmlsitemap/add'] = array(
    'title' => 'Add XML sitemap',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_sitemap_edit_form',
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/edit/%xmlsitemap_sitemap'] = array(
    'title' => 'Edit XML sitemap',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_sitemap_edit_form',
      4,
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/delete/%xmlsitemap_sitemap'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_sitemap_delete_form',
      4,
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_settings_form',
    ),
    'access arguments' => array(
      'administer xmlsitemap',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'xmlsitemap.admin.inc',
    'weight' => 10,
  );
  $items['admin/settings/xmlsitemap/settings/%xmlsitemap_link_bundle/%'] = array(
    'load arguments' => array(
      5,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_link_bundle_settings_form',
      4,
    ),
    'access callback' => 'xmlsitemap_link_bundle_access',
    'access arguments' => array(
      4,
    ),
    'file' => 'xmlsitemap.admin.inc',
    'modal' => TRUE,
  );
  $items['admin/settings/xmlsitemap/rebuild'] = array(
    'title' => 'Rebuild links',
    'description' => 'Rebuild the site map.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xmlsitemap_rebuild_form',
    ),
    'access callback' => '_xmlsitemap_rebuild_form_access',
    'type' => MENU_LOCAL_TASK,
    'file' => 'xmlsitemap.admin.inc',
    'weight' => 20,
  );
  $items['sitemap.xml'] = array(
    'page callback' => 'xmlsitemap_output_chunk',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap.pages.inc',
  );
  $items['sitemap.xsl'] = array(
    'page callback' => 'xmlsitemap_output_xsl',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'xmlsitemap.pages.inc',
  );
  return $items;
}