diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-11 00:12:37 -0600 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-11 00:12:37 -0600 |
commit | 11d884bee7d0e00ede4cc0c3c147d787292b9b29 (patch) | |
tree | 6a0abc1a72734a854aac6b6f351d9f6b472402a8 /modules/system/system.module | |
parent | a2588037892138ab71f6249816fd3c909fa2ee3d (diff) | |
download | brdo-11d884bee7d0e00ede4cc0c3c147d787292b9b29.tar.gz brdo-11d884bee7d0e00ede4cc0c3c147d787292b9b29.tar.bz2 |
Issue #953336 by sun: Fixed Contributed modules are not able to test theme-related functionality.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 46ec87db1..eac76a33d 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2472,6 +2472,18 @@ function _system_update_bootstrap_status() { function _system_rebuild_theme_data() { // Find themes $themes = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.info$/', 'themes'); + // Allow modules to add further themes. + if ($module_themes = module_invoke_all('system_theme_info')) { + foreach ($module_themes as $name => $uri) { + // @see file_scan_directory() + $themes[$name] = (object) array( + 'uri' => $uri, + 'filename' => pathinfo($uri, PATHINFO_FILENAME), + 'name' => $name, + ); + } + } + // Find theme engines $engines = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.engine$/', 'themes/engines'); |