From 5fc06cec4c440ac21b3913c0c9b0c892a6091bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 4 Oct 2007 19:24:50 +0000 Subject: #180389 by merlinofchaos: add hook_theme_registry_alter() for devel module and friends to alter and get access to the theme registry --- includes/theme.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') 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; } -- cgit v1.2.3