function coder_upgrade_theme_build_registry in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/conversions/begin.inc \coder_upgrade_theme_build_registry()
Builds theme registry for disabled core modules.
Adapted from _theme_build_registry().
Return value
unknown_type
1 call to coder_upgrade_theme_build_registry()
- coder_upgrade_cache_theme_registry in coder_upgrade/
conversions/ begin.inc - Caches the theme registry from core files (including disabled modules).
File
- coder_upgrade/
conversions/ begin.inc, line 69 - Provides conversion routines applied to the directory before routines are applied to the files.
Code
function coder_upgrade_theme_build_registry() {
// Get the list of disabled core modules.
$list = coder_upgrade_module_list(TRUE, 0);
$cache = array();
$hook = 'theme';
// TODO In the D8 release of this module, will need to use the correct file.
// $hook_info = module_hook_info();
foreach ($list as $module => $stuff) {
// foreach (module_implements('theme') as $module) {
module_load_include('module', $module);
if (module_hook($module, $hook)) {
// || (isset($hook_info[$hook]['group']) && $include_file = module_load_include('inc', $module, $module . '.' . $hook_info[$hook]['group']) && module_hook($module, $hook))) {
_theme_process_registry($cache, $module, 'module', $module, $path = drupal_get_path('module', $module));
}
}
return $cache;
}