_drupal_bootstrap_page_header

Versions
7
_drupal_bootstrap_page_header()

Bootstrap page header: Invoke hook_boot(), intialize locking system, and send default HTTP headers.

▾ 1 function calls _drupal_bootstrap_page_header()

drupal_bootstrap in includes/bootstrap.inc
A string describing a phase of Drupal to load. Each phase adds to the previous one, so invoking a later phase automatically runs the earlier phases too. The most important usage is that if you want to access the Drupal database from a script without...

Code

includes/bootstrap.inc, line 1645

<?php
function _drupal_bootstrap_page_header() {
  bootstrap_invoke_all('boot');
  if (!drupal_page_get_cache(TRUE) && drupal_page_is_cacheable()) {
    header('X-Drupal-Cache: MISS');
  }

  // Prepare for non-cached page workflow.
  require_once DRUPAL_ROOT . '/' . variable_get('lock_inc', 'includes/lock.inc');
  lock_initialize();

  if (!drupal_is_cli()) {
    ob_start();
    drupal_page_header();
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.