You are here

function authcache_menu in Authenticated User Page Caching (Authcache) 7.2

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

Implements hook_menu().

5 string references to 'authcache_menu'
AuthcacheFieldTest::setUp in modules/authcache_field/authcache_field.test
Sets up a Drupal site for running functional and integration tests.
AuthcacheForumTest::setUp in modules/authcache_forum/authcache_forum.test
Sets up a Drupal site for running functional and integration tests.
AuthcacheMenuTestItemTitle::setUp in modules/authcache_menu/tests/authcache_menu.test
Sets up a Drupal site for running functional and integration tests.
AuthcacheMenuTestLocalTasks::setUp in modules/authcache_menu/tests/authcache_menu.test
Sets up a Drupal site for running functional and integration tests.
authcache_menu_preprocess_page in modules/authcache_menu/authcache_menu.module
Implements hook_preprocess_page().

File

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

Code

function authcache_menu() {
  $items['admin/config/system/authcache'] = array(
    'title' => 'Authcache',
    'description' => 'Configure authenticated user page caching.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'authcache_admin_config',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'authcache.admin.inc',
    'weight' => 10,
  );
  $items['admin/config/system/authcache/config'] = array(
    'title' => 'Configuration',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/system/authcache/pagecaching'] = array(
    'title' => '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,
  );
  return $items;
}