You are here

function _drupal_bootstrap_full in Drupal 5

Same name and namespace in other branches
  1. 4 includes/common.inc \_drupal_bootstrap_full()
  2. 6 includes/common.inc \_drupal_bootstrap_full()
  3. 7 includes/common.inc \_drupal_bootstrap_full()

Related topics

1 call to _drupal_bootstrap_full()
_drupal_bootstrap in includes/bootstrap.inc

File

includes/common.inc, line 1982
Common functions that many Drupal modules will need to reference.

Code

function _drupal_bootstrap_full() {
  static $called;
  global $locale;
  if ($called) {
    return;
  }
  $called = 1;
  require_once './includes/theme.inc';
  require_once './includes/pager.inc';
  require_once './includes/menu.inc';
  require_once './includes/tablesort.inc';
  require_once './includes/file.inc';
  require_once './includes/unicode.inc';
  require_once './includes/image.inc';
  require_once './includes/form.inc';

  // Set the Drupal custom error handler.
  set_error_handler('error_handler');

  // Emit the correct charset HTTP header.
  drupal_set_header('Content-Type: text/html; charset=utf-8');

  // Detect string handling method
  unicode_check();

  // Undo magic quotes
  fix_gpc_magic();

  // Load all enabled modules
  module_load_all();

  // Initialize the localization system.  Depends on i18n.module being loaded already.
  $locale = locale_initialize();

  // Let all modules take action before menu system handles the reqest
  module_invoke_all('init');
}