drupal_theme_rebuild
function drupal_theme_rebuild
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.
File
- includes/theme.inc, line 352
- The theme system, which controls the output of Drupal.
Code
function drupal_theme_rebuild() { drupal_static_reset('theme_get_registry'); cache_clear_all('theme_registry', 'cache', TRUE); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/drupal_theme_rebuild/7.x