You are here

function admin_menu_panels_cache in Administration menu 5.3

Same name and namespace in other branches
  1. 5.2 admin_menu.module \admin_menu_panels_cache()

Implementation of hook_panels_cache().

We're misusing the panels_cache hook here: whenever called, check if the current request has a POST payload, and clear the cached admin menu. This can easily be seen as a hack, as it will happen way too often when working on the panels admin pages.

File

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

Code

function admin_menu_panels_cache() {
  if (!empty($_POST)) {
    admin_menu_clear_cache();
  }
}