function _toolbar_subtrees_access

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

See also

toolbar_menu().

1 string reference to '_toolbar_subtrees_access'
toolbar_menu in drupal/core/modules/toolbar/toolbar.module
Implements hook_menu().

File

drupal/core/modules/toolbar/toolbar.module, line 69
Administration toolbar for quick access to top level administration items.

Code

function _toolbar_subtrees_access($hash) {
  return user_access('access toolbar') && $hash == _toolbar_get_subtree_hash();
}