You are here

function boost_menu in Boost 5

Same name and namespace in other branches
  1. 6 boost.module \boost_menu()
  2. 7 boost.module \boost_menu()

Implementation of hook_menu(). Defines menu items and page callbacks.

File

./boost.module, line 75
Provides static page caching for Drupal.

Code

function boost_menu($may_cache) {
  $access = user_access('administer cache');
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/performance/boost',
      'title' => t('Boost'),
      'description' => t('Enable or disable page caching for anonymous users and set CSS and JS bandwidth optimization options.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'boost_settings',
      ),
      'access' => user_access('administer site configuration'),
    );

    // TODO: define menu actions for cache administration.
  }
  return $items;
}