drupal_rebuild_theme_registry

Definition

drupal_rebuild_theme_registry()
includes/theme.inc, line 243

Description

Force the system to rebuild the theme registry; this should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks.

Code

<?php
function drupal_rebuild_theme_registry() {
  cache_clear_all('theme_registry', 'cache', TRUE);
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.