_book_node_is_removable
function _book_node_is_removable
_book_node_is_removable($node)
Determines if a node can be removed from the book.
A node can be removed from a book if it is actually in a book and it either is not a top-level page or is a top-level page with no children.
Parameters
$node: The node to remove from the outline.
File
- modules/book/book.module, line 228
- Allows users to create and organize related content in an outline.
Code
function _book_node_is_removable($node) { return (!empty($node->book['bid']) && (($node->book['bid'] != $node->nid) || !$node->book['has_children'])); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.module/function/_book_node_is_removable/7.x