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.api.php | |
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.api.php')
-rw-r--r-- | modules/system/system.api.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index f241eea78..e2fe6c619 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -1907,6 +1907,25 @@ function hook_module_implements_alter(&$implementations, $hook) { } /** + * Return additional themes provided by modules. + * + * Only use this hook for testing purposes. Use a hidden MYMODULE_test.module + * to implement this hook. Testing themes should be hidden, too. + * + * This hook is invoked from _system_rebuild_theme_data() and allows modules to + * register additional themes outside of the regular 'themes' directories of a + * Drupal installation. + * + * @return + * An associative array. Each key is the system name of a theme and each value + * is the corresponding path to the theme's .info file. + */ +function hook_system_theme_info() { + $themes['mymodule_test_theme'] = drupal_get_path('module', 'mymodule') . '/mymodule_test_theme/mymodule_test_theme.info'; + return $themes; +} + +/** * Alter the information parsed from module and theme .info files * * This hook is invoked in _system_rebuild_module_data() and in |