You are here

function authcache_menu_test_menu in Authenticated User Page Caching (Authcache) 7.2

Implements hook_menu().

File

modules/authcache_menu/tests/authcache_menu_test.module, line 10
Stub module for Authcache Menu test.

Code

function authcache_menu_test_menu() {
  $items['no-tabs'] = array(
    'title' => 'No tabs page',
    'page callback' => 'authcache_menu_test_page',
  );
  $items['tab-root-std-access'] = array(
    'title' => 'Root',
    'access arguments' => array(
      'access content',
    ),
    'page callback' => 'authcache_menu_test_page',
  );
  $items['tab-root-std-access/view'] = array(
    'title' => 'View',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['tab-root-std-access/edit'] = array(
    'title' => 'Edit',
    'access arguments' => array(
      'access content',
    ),
    'page callback' => 'authcache_menu_test_page',
    'type' => MENU_LOCAL_TASK,
  );
  $items['tab-root-cust-access'] = array(
    'title' => 'Root',
    'access arguments' => array(
      'access content',
    ),
    'page callback' => 'authcache_menu_test_page',
  );
  $items['tab-root-cust-access/view'] = array(
    'title' => 'View',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['tab-root-cust-access/edit'] = array(
    'title' => 'Edit',
    'page callback' => 'authcache_menu_test_page',
    'access callback' => 'authcache_menu_test_access_callback',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}