function admin_menu_panels_cache in Administration menu 5.2
Same name and namespace in other branches
- 5.3 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 508 - Renders a menu tree for administrative purposes as dropdown menu at the top of the window.
Code
function admin_menu_panels_cache() {
if (!empty($_POST)) {
admin_menu_clear_cache();
}
}