_menu_tree_cid

Versions
6 – 7
_menu_tree_cid($menu_name, $data)

Helper function - compute the real cache ID for menu tree data.

Related topics

▾ 2 functions call _menu_tree_cid()

menu_tree_all_data in includes/menu.inc
Get the data structure representing a named menu tree.
menu_tree_page_data in includes/menu.inc
Get the data structure representing a named menu tree, based on the current page.

Code

includes/menu.inc, line 963

<?php
function _menu_tree_cid($menu_name, $data) {
  return 'links:'. $menu_name .':tree-data:'. md5(serialize($data));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.