You are here

function _navbar_subtrees_access in Navbar 7

Access callback: Returns if the user has access to the rendered subtree requested by the hash.

See also

navbar_menu().

1 string reference to '_navbar_subtrees_access'
navbar_menu in ./navbar.module
Implements hook_menu().

File

./navbar.module, line 178
Administration navbar for quick access to top level administration items.

Code

function _navbar_subtrees_access($hash) {
  return user_access('access navbar') && $hash == _navbar_get_subtree_hash();
}