menu_link_children_relative_depth

function menu_link_children_relative_depth

menu_link_children_relative_depth($item)

Finds the depth of an item's children relative to its depth.

For example, if the item has a depth of 2, and the maximum of any child in the menu link tree is 5, the relative depth is 3.

Parameters

$item: An array representing a menu link item.

Return value

The relative depth, or zero.

Related topics

File

includes/me