You are here

function authcache_example_menu in Authenticated User Page Caching (Authcache) 7

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

Implents hook_menu()

File

modules/authcache_example/authcache_example.module, line 13
authcache_example.module

Code

function authcache_example_menu() {
  $items['user/%user/authcache-example'] = array(
    'title' => 'Authcache Example',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'authcache_example_block_form',
      1,
    ),
    'access callback' => 'authcache_example_custom_access',
    'access arguments' => array(
      1,
      'edit',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}