summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-04 19:24:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-04 19:24:50 +0000
commit5fc06cec4c440ac21b3913c0c9b0c892a6091bb9 (patch)
treeac0311e6143c123ab37ffcec7b62f01122195b9e /includes
parent15445a6db97dfe63a2a1739deef9bb900068ff86 (diff)
downloadbrdo-5fc06cec4c440ac21b3913c0c9b0c892a6091bb9.tar.gz
brdo-5fc06cec4c440ac21b3913c0c9b0c892a6091bb9.tar.bz2
#180389 by merlinofchaos: add hook_theme_registry_alter() for devel module and friends to alter and get access to the theme registry
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index e7fec486d..c5516192a 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;
}