1.12.x book.module _book_parent_depth_limit($book_link)
1.10.x book.module _book_parent_depth_limit($book_link)
1.11.x book.module _book_parent_depth_limit($book_link)
1.7.x book.module _book_parent_depth_limit($book_link)
1.8.x book.module _book_parent_depth_limit($book_link)
1.9.x book.module _book_parent_depth_limit($book_link)

Finds the depth limit for items in the parent select.

Parameters

$book_link: A fully loaded menu link that is part of the book hierarchy.

Return value

The depth limit for items in the parent select.

File

modules/book/book.module, line 992
Allows users to create and organize related content in an outline.

Code

function _book_parent_depth_limit($book_link) {
  return MENU_MAX_DEPTH - 1 - (($book_link['mlid'] && $book_link['has_children']) ? menu_link_children_relative_depth($book_link) : 0);
}