You are here

function navbar_subtrees_jsonp in Navbar 7

Page callback: Returns the rendered subtree of each top-level navbar link.

See also

navbar_menu().

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

File

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

Code

function navbar_subtrees_jsonp($hash) {
  _navbar_initialize_page_cache();
  $subtrees = navbar_get_rendered_subtrees();
  $response = new JsonResponse($subtrees);
  $response
    ->setCallback('Drupal.navbar.setSubtrees.resolve');
  return $response;
}