You are here

function admin_menu_flush_caches in Administration menu 6.3

Same name and namespace in other branches
  1. 7.3 admin_menu.module \admin_menu_flush_caches()

Implements hook_flush_caches().

Flush client-side caches.

2 calls to admin_menu_flush_caches()
admin_menu_menu_alter in ./admin_menu.module
Implements hook_menu_alter().
admin_menu_toggle_modules in ./admin_menu.inc
Menu callback; Enable/disable developer modules.
1 string reference to 'admin_menu_flush_caches'
admin_menu_form_system_clean_url_settings_alter in ./admin_menu.module
Implements hook_form_FORM_ID_alter().

File

./admin_menu.module, line 751
Render an administrative menu as a dropdown menu at the top of the window.

Code

function admin_menu_flush_caches() {

  // Flush cached output of admin_menu.
  cache_clear_all('admin_menu:', 'cache_menu', TRUE);

  // Flush client-side cache hashes.
  // db_table_exists() required for SimpleTest.
  if (db_table_exists('cache_admin_menu')) {
    cache_clear_all('*', 'cache_admin_menu', TRUE);
  }
}