You are here

function xautoload_DrupalExtensionSystem::bootstrapPhase in X Autoload 7.2

This is called to initiate the bootstrap phase.

File

lib/DrupalExtensionSystem.php, line 45

Class

xautoload_DrupalExtensionSystem
That's an abstraction of the Drupal module/theme system. It can tell us when an extension exists, and at which path.

Code

function bootstrapPhase() {

  // Register all bootstrap modules.
  // On bootstrap, the values of system_list() equal the keys.
  foreach (system_list('bootstrap') as $module) {

    // drupal_get_filename() is used during bootstrap, so that should be safe.
    $filename = drupal_get_filename('module', $module);
    $this->paths[$module] = dirname($filename);
  }
}