function _nodehierarchy_prepare_menu_link in Node Hierarchy 7.2
Same name and namespace in other branches
- 6.3 nodehierarchy.module \_nodehierarchy_prepare_menu_link()
- 6.2 nodehierarchy.module \_nodehierarchy_prepare_menu_link()
Helper function to prepare a menu link after it's been loaded.
4 calls to _nodehierarchy_prepare_menu_link()
- nodehierarchy_update_6200 in ./
nodehierarchy.install - Update from the 5.x or 6.x-1.x branches.
- _nodehierarchy_get_children_menu_links in ./
nodehierarchy.module - Get the children of the given node.
- _nodehierarchy_get_node_menu_links in ./
nodehierarchy.module - Get all the menu links for the given node.
- _nodehierarchy_load_menu_link in ./
nodehierarchy.module - Helper function to load a menu_link given a mlid.
File
- ./
nodehierarchy.module, line 1335 - A module to make nodes hierarchical.
Code
function _nodehierarchy_prepare_menu_link($menu_link) {
if ($menu_link) {
$menu_link['options'] = is_string($menu_link['options']) ? unserialize($menu_link['options']) : $menu_link['options'];
$menu_link['enabled'] = !$menu_link['hidden'];
list(, $menu_link['nid']) = explode('/', $menu_link['link_path']);
}
return $menu_link;
}