You are here

function xautoload_DrupalExtensionSystem::addModules in X Autoload 7.2

Add modules after they have been enabled or installed.

Parameters

array $modules: Array of module names, with numeric keys.

File

lib/DrupalExtensionSystem.php, line 74

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 addModules(array $modules) {
  foreach ($modules as $module) {
    $filename = drupal_get_filename('module', $module);
    $this->paths[$module] = dirname($filename);
  }
}