_book_parent_depth_limit

Versions
6 – 7
_book_parent_depth_limit($book_link)

Find the depth limit for items in the parent select.

▾ 2 functions call _book_parent_depth_limit()

book_nodeapi in modules/book/book.module
Implementation of hook_nodeapi().
book_outline_form in modules/book/book.pages.inc
Build the form to handle all book outline operations via the outline tab.

Code

modules/book/book.module, line 749

<?php
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);
}
?>
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.