You are here

function themekey_flush_caches in ThemeKey 7.3

Same name and namespace in other branches
  1. 7 themekey.module \themekey_flush_caches()
  2. 7.2 themekey.module \themekey_flush_caches()

Implements hook_flush_caches().

ThemeKey hijacks this hook to act if a module get updated.

File

./themekey.module, line 482
ThemeKey is designed as a generic theme-switching module.

Code

function themekey_flush_caches() {
  require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'themekey') . '/themekey_build.inc';

  // Search for new properties provided by a new module
  themekey_rebuild();

  // Don't add a cache table name.
  return array();
}