summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2007-10-04 19:24:50 (GMT)
committerGábor Hojtsy2007-10-04 19:24:50 (GMT)
commit5fc06cec4c440ac21b3913c0c9b0c892a6091bb9 (patch)
treeac0311e6143c123ab37ffcec7b62f01122195b9e
parent15445a6db97dfe63a2a1739deef9bb900068ff86 (diff)
#180389 by merlinofchaos: add hook_theme_registry_alter() for devel module and friends to alter and get access to the theme registry
-rw-r--r--includes/theme.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index e7fec48..c551619 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -382,6 +382,8 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) {
// Finally, hooks provided by the theme itself.
_theme_process_registry($cache, $theme->name, 'theme', $theme->name, dirname($theme->filename));
+ // Let modules alter the registry
+ drupal_alter('theme_registry', $cache);
return $cache;
}