You are here

function admin_menu_cache_set in Administration menu 6.3

Same name and namespace in other branches
  1. 8.3 admin_menu.module \admin_menu_cache_set()
  2. 5.3 admin_menu.module \admin_menu_cache_set()

Store a client-side cache hash in persistent cache.

This should only be used for client-side cache hashes. Use cache_menu for administration menu content.

Parameters

$cid: The cache ID of the data to retrieve.

1 call to admin_menu_cache_set()
admin_menu_output in ./admin_menu.module
Build the administration menu output.

File

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

Code

function admin_menu_cache_set($cid, $data) {
  if (variable_get('admin_menu_cache_client', TRUE)) {
    cache_set($cid, $data, 'cache_admin_menu');
  }
}