function hook_system_theme_engine_info in Drupal 7
Return additional theme engines provided by modules.
This hook is invoked from _system_rebuild_theme_data() and allows modules to register additional theme engines outside of the regular 'themes/engines' directories of a Drupal installation.
Return value
An associative array. Each key is the system name of a theme engine and each value is the corresponding path to the theme engine's .engine file.
Related topics
1 function implements hook_system_theme_engine_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- theme_test_system_theme_engine_info in modules/
simpletest/ tests/ theme_test.module - Implements hook_system_theme_engine_info().
1 invocation of hook_system_theme_engine_info()
- _system_rebuild_theme_data in modules/
system/ system.module - Helper function to scan and collect theme .info data and their engines.
File
- modules/
system/ system.api.php, line 2064 - Hooks provided by Drupal core and the System module.
Code
function hook_system_theme_engine_info() {
$theme_engines['izumi'] = drupal_get_path('module', 'mymodule') . '/izumi/izumi.engine';
return $theme_engines;
}