You are here

function throttle_menu in Drupal 5

Same name and namespace in other branches
  1. 6 modules/throttle/throttle.module \throttle_menu()

@file Allows configuration of congestion control auto-throttle mechanism.

File

modules/throttle/throttle.module, line 8
Allows configuration of congestion control auto-throttle mechanism.

Code

function throttle_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/throttle',
      'description' => t('Control how your site cuts out content during heavy load.'),
      'title' => t('Throttle'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'throttle_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}