1 admin_bar.module admin_bar_deliver($page_callback_result)

Delivery callback for client-side HTTP caching.

See also



core/modules/admin_bar/admin_bar.module, line 392
Render an administrative bar as a dropdown menu at the top of the window.


function admin_bar_deliver($page_callback_result) {
  backdrop_add_http_header('Content-Type', 'text/html; charset=utf-8');

  // Send appropriate language header for browsers.
  global $language;
  backdrop_add_http_header('Content-Language', $language->langcode);

  // The page callback is always admin_bar_js_cache(), which always returns a
  // string, and is only accessed when the user actually has access to it.
  // Therefore, we do not care for the other possible page callback results.
  print $page_callback_result;

  // Perform end-of-request tasks. The page cache is created here.