You are here

function hook_authcache_menu_tab_root_blacklist_alter in Authenticated User Page Caching (Authcache) 7.2

Modify the list of tab root paths where fragment substitution is necessary.

1 function implements hook_authcache_menu_tab_root_blacklist_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

authcache_menu_test_authcache_menu_tab_root_blacklist_alter in modules/authcache_menu/tests/authcache_menu_test.module
Implements hook_authcache_menu_tab_root_blacklist_alter().
1 invocation of hook_authcache_menu_tab_root_blacklist_alter()
authcache_menu_tab_root_blacklist in modules/authcache_menu/authcache_menu.module
Return tab_roots where tabs may differ for users with the same role set.

File

modules/authcache_menu/authcache_menu.api.php, line 40
API documentation for Authcache Menu hooks.

Code

function hook_authcache_menu_tab_root_blacklist_alter(&$tab_roots, $type_mask) {
  if ($type_mask & MENU_IS_LOCAL_TASK) {

    // If no node access modules are present and no cacheable role has an
    // 'edit own X content' permission, it is save to cache the tabs on the
    // node/X pages.
    unset($tab_roots['node/%']);
  }
}