function 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

7 functions implement hook_system_theme_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ajax_test_system_theme_info in drupal/core/modules/system/tests/modules/ajax_test/ajax_test.module
Implements hook_system_theme_info().
block_test_system_theme_info in drupal/core/modules/block/tests/block_test.module
Implements hook_system_theme_info().
breakpoint_theme_test_system_theme_info in drupal/core/modules/breakpoint/tests/breakpoint_theme_test.module
Implements hook_system_theme_info().
layout_test_system_theme_info in drupal/core/modules/layout/tests/layout_test.module
Implements hook_system_theme_info().
theme_page_test_system_theme_info in drupal/core/modules/system/tests/modules/theme_page_test/theme_page_test.module
Implements hook_system_theme_info().

... See full list

1 invocation of hook_system_theme_info()
_system_rebuild_theme_data in drupal/core/modules/system/system.module
Helper function to scan and collect theme .info data and their engines.

File

drupal/core/modules/system/system.api.php, line 1642
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;
}