You are here

function _xautoload_register_drupal in X Autoload 7.3

Same name and namespace in other branches
  1. 7.5 xautoload.module \_xautoload_register_drupal()
  2. 7.4 xautoload.module \_xautoload_register_drupal()

Register Drupal-related namespaces and prefixes in the xautoload loader.

1 call to _xautoload_register_drupal()
xautoload.module in ./xautoload.module

File

./xautoload.module, line 254

Code

function _xautoload_register_drupal() {

  // Check that this runs only once.
  static $_first_run = TRUE;
  if (!$_first_run) {
    return;
  }
  $_first_run = FALSE;

  // Register the class loader itself.
  require_once dirname(__FILE__) . '/xautoload.early.inc';

  // Now that variable_get() is available, we can switch on some caching.
  xautoload('loaderManager')
    ->register(NULL);

  // Let the "boot schedule" register our modules.
  xautoload('schedule')
    ->initBootstrapPhase();
}