drupal_theme_rebuild

Versions
7
drupal_theme_rebuild()

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.

▾ 5 functions call drupal_theme_rebuild()

drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
image_style_flush in modules/image/image.module
Flush cached media for a style.
system_modules_submit in modules/system/system.admin.inc
Submit callback; handles modules form submission.
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

includes/theme.inc, line 282

<?php
function drupal_theme_rebuild() {
  cache_clear_all('theme_registry', 'cache', TRUE);
}
?>
Login or register to post comments
 
 

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.