function block_flush_caches
block_flush_caches()
Implements hook_flush_caches().
File
- modules/block/block.module, line 992
- Controls the visual building blocks a page is constructed with.
Code
function block_flush_caches() { // Rehash blocks for active themes. We don't use list_themes() here, // because if MAINTENANCE_MODE is defined it skips reading the database, // and we can't tell which themes are active. $themes = db_query("SELECT name FROM {system} WHERE type = 'theme' AND status = 1"); foreach ($themes as $theme) { _block_rehash($theme->name); } return array('cache_block'); }
© 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/modules!block!block.module/function/block_flush_caches/7.x