diff --git a/libraries.module b/libraries.module index a6e6237..b86b448 100644 --- a/libraries.module +++ b/libraries.module @@ -340,16 +340,15 @@ function &libraries_info($name = NULL) { if (!isset($libraries)) { $libraries = array(); - // Gather information from implementations of hook_libraries_info() from - // enabled modules ... + // Gather information from hook_libraries_info(). foreach (module_implements('libraries_info') as $module) { foreach (module_invoke($module, 'libraries_info') as $machine_name => $properties) { $properties['module'] = $module; $libraries[$machine_name] = $properties; } } - // ... and the active theme (and potential base themes). This code is - // borrowed from drupal_alter(). + // Gather information from hook_libraries_info() in enabled themes. + // @see drupal_alter() global $theme, $base_theme_info; if (isset($theme)) { $theme_keys = array(); @@ -367,7 +366,7 @@ function &libraries_info($name = NULL) { } } } - + // Gather information from .info files. // .info files override module definitions. foreach (libraries_scan_info_files() as $machine_name => $file) {