Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.385
diff -u -p -r1.385 theme.inc
--- includes/theme.inc	25 Sep 2007 12:43:18 -0000	1.385
+++ includes/theme.inc	3 Oct 2007 01:36:28 -0000
@@ -351,6 +351,8 @@ function _theme_build_registry($theme, $
   // 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;
 }
 
