function drupal_theme_rebuild

You are here

7 drupal_theme_rebuild()
8 drupal_theme_rebuild()

Forces the system to rebuild the theme registry.

This function should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks.

8 calls to drupal_theme_rebuild()
drupal_flush_all_caches in includes/
Flushes all cached data on the site.
image_style_flush in modules/image/image.module
Flushes cached media for a style.
module_disable in includes/
Disables a given set of modules.
module_enable in includes/
Enables or installs a given list of modules.
ThemeTestCase::testPreprocessForSuggestions in modules/simpletest/tests/theme.test
Ensures preprocess functions run even for suggestion implementations.

... See full list


includes/, line 352
The theme system, which controls the output of Drupal.


function drupal_theme_rebuild() {
  cache_clear_all('theme_registry', 'cache', TRUE);