Community Documentation

drupal_menu

5 drupal.module drupal_menu($may_cache)

Implementation of hook_menu().

File

modules/drupal/drupal.module, line 338
Lets users log in using a Drupal ID and can notify a central server about your site.

Code

<?php
function drupal_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/sites-registry', 
      'title' => t('Sites registry'), 
      'description' => t('Register with another Drupal site (drupal.org by default) for statistics sharing, or set up your server to be a central server for registrations.'), 
      'callback' => 'drupal_get_form', 
      'callback arguments' => array('drupal_sites_registry_settings'), 
      'access' => user_access('administer site configuration'),
    );
    $items[] = array(
      'path' => 'admin/settings/distributed-authentication', 
      'title' => t('Distributed authentication'), 
      'description' => t('Allow your site to accept logins from other Drupal sites such as drupal.org.'), 
      'callback' => 'drupal_get_form', 
      'callback arguments' => array('drupal_distributed_authentication_settings'), 
      'access' => user_access('administer site configuration'),
    );

    if (variable_get('drupal_authentication_service', 0)) {
      $items[] = array(
        'path' => 'drupal', 
        'title' => t('Drupal'), 
        'callback' => 'drupal_page_help', 
        'access' => TRUE, 
        'type' => MENU_SUGGESTED_ITEM,
      );
    }
  }
  return $items;
}
?>
Login or register to post comments