You are here

function authcache_menu in Authenticated User Page Caching (Authcache) 6

Same name and namespace in other branches
  1. 7.2 authcache.module \authcache_menu()
  2. 7 authcache.module \authcache_menu()

Implements hook_menu().

File

./authcache.module, line 38
Authenticated User Page Caching (and anonymous users, too!)

Code

function authcache_menu() {
  $items['admin/settings/performance/drupal'] = array(
    'title' => t('Drupal core'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
    'page callback' => 'drupal_goto',
    // For admin_menu.module
    'page arguments' => array(
      'admin/settings/performance',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/settings/performance/authcache/config'] = array(
    'title' => 'Configuration',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/performance/authcache'] = array(
    'title' => 'Authcache',
    'description' => "Configure Authcache.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'authcache_admin_config',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'authcache.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/settings/performance/authcache/pagecaching'] = array(
    'title' => t('Page caching settings'),
    'description' => "Configure page cache settings.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'authcache_admin_pagecaching',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'authcache.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
  );
  $items['admin/settings/performance/authcache/blocks'] = array(
    'title' => t('Blocks'),
    'description' => "View Authcache blocks.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'authcache_admin_blocks',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'authcache.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 30,
  );

  /* @todo
    $items['admin/settings/performance/authcache/advanced'] = array(
      'title' => 'Advanced Rulesets',
      'description' => "Configure advanced caching rulesets.",
      'page callback' => 'drupal_get_form',
      'page arguments' => array('authcache_admin_advanced'),
      'access arguments' => array('administer site configuration'),
      'file' => 'authcache.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 30,
    );
    $items['admin/settings/performance/authcache/lookup'] = array(
      'title' => t('View Cached'),
      'page callback' => 'authcache_admin_lookup',
      'access arguments' => array('administer site configuration'),
      'file' => 'authcache.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 30,
    );
    */
  $items['authcache/ahah'] = array(
    'title' => 'Javascript Ahah Callback',
    'page callback' => 'authcache_ahah',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'authcache.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}