| 7 system.api.php | hook_system_theme_info() |
| 8 system.api.php | hook_system_theme_info() |
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 value
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.
Related topics
4 functions implement hook_system_theme_info()
1 invocation of hook_system_theme_info()
File
- modules/
system/ system.api.php, line 1978 - Hooks provided by Drupal core and the System module.
Code
function hook_system_theme_info() {
$themes['mymodule_test_theme'] = drupal_get_path('module', 'mymodule') . '/mymodule_test_theme/mymodule_test_theme.info';
return $themes;
}
Login or register to post comments
Comments
This hook was added quite
This hook was added quite recently and is not yet in a stable release; it will be in the next release after Drupal 7.10.