drupal_rebuild_theme_registry

includes/theme.inc, line 242

Versions
6
drupal_rebuild_theme_registry()

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.

▾ 4 functions call drupal_rebuild_theme_registry()

drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
system_modules in modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.
system_settings_form_submit in modules/system/system.module
Execute the system_settings_form.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.

Code

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.