function _book_parent_depth_limit
7.x book.module | _book_parent_depth_limit($book_link) |
6.x book.module | _book_parent_depth_limit($book_link) |
Find the depth limit for items in the parent select.
2 calls to _book_parent_depth_limit()
- book_nodeapi in drupal-6.x/
modules/ book/ book.module - Implementation of hook_nodeapi().
- book_outline_form in drupal-6.x/
modules/ book/ book.pages.inc - Build the form to handle all book outline operations via the outline tab.
File
- drupal-6.x/
modules/ book/ book.module, line 749 - Allows users to structure the pages of a site in a hierarchy or 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);
}