1.20.x system.module system_admin_bar_cache_info()

Implements hook_admin_bar_cache_info().

File

modules/system/system.module, line 4546
Configuration system that lets administrators modify the workings of the site.

Code

function system_admin_bar_cache_info() {
  $caches = array(
    'assets' => t('CSS and JavaScript'),
    'cache' => t('Page and else'),
    'layout' => t('Layout'),
    'menu' => t('Menu'),
    'theme' => t('Theme registry'),
    'token' => t('Token registry'),
  );
  foreach ($caches as $name => $cache) {
    $caches[$name] = array(
      'title' => $cache,
      'callback' => '_admin_bar_flush_cache',
    );
  }
  return $caches;
}