function xautoload_DrupalExtensionSystem::mainPhase in X Autoload 7.2
This is called to initiate the main phase.
1 call to xautoload_DrupalExtensionSystem::mainPhase()
- xautoload_DrupalExtensionSystem::getExtensionPath in lib/
DrupalExtensionSystem.php - Get the directory path for a module or theme.
File
- lib/
DrupalExtensionSystem.php, line 58
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 mainPhase() {
foreach (system_list('module_enabled') as $module => $info) {
$this->paths[$module] = dirname($info->filename);
}
foreach (list_themes('theme') as $theme => $info) {
$this->paths[$theme] = dirname($info->filename);
}
$this->inMainPhase = TRUE;
}