function admin_menu_deliver

nittany7 admin_menu.module admin_menu_deliver($page_callback_result)
cis7 admin_menu.module admin_menu_deliver($page_callback_result)
mooc7 admin_menu.module admin_menu_deliver($page_callback_result)

Delivery callback for client-side HTTP caching.

See also

admin_menu_js_cache()

1 string reference to 'admin_menu_deliver'
admin_menu_menu in modules/contrib/admin_menu/admin_menu.module
Implements hook_menu().

File

modules/contrib/admin_menu/admin_menu.module, line 377
Render an administrative menu as a dropdown menu at the top of the window.

Code

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

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

  // The page callback is always admin_menu_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.
  drupal_page_footer();
}