You are here

function _authcache_menu_tab_root_list in Authenticated User Page Caching (Authcache) 7.2

Return a list of tab roots whose type matches the type mask.

Parameters

int $type_mask: One of MENU_IS_LOCAL_TASK or MENU_IS_LOCAL_ACTION

Return value

array Associative array (tab_root -> tab_root) of paths from type map matching the type mask.

1 call to _authcache_menu_tab_root_list()
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.module, line 219
Authcache support for menu, tabs and local actions.

Code

function _authcache_menu_tab_root_list($type_map, $type_mask) {
  $result = array();
  foreach ($type_map as $tab_root => $type) {
    if ($type & $type_mask) {
      $result[$tab_root] = $tab_root;
    }
  }
  return $result;
}