function _xautoload_register_drupal in X Autoload 7.3
Same name and namespace in other branches
- 7.5 xautoload.module \_xautoload_register_drupal()
- 7.4 xautoload.module \_xautoload_register_drupal()
Register Drupal-related namespaces and prefixes in the xautoload loader.
1 call to _xautoload_register_drupal()
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();
}