1.12.x book.module _book_link_defaults($nid)
1.10.x book.module _book_link_defaults($nid)
1.11.x book.module _book_link_defaults($nid)
1.7.x book.module _book_link_defaults($nid)
1.8.x book.module _book_link_defaults($nid)
1.9.x book.module _book_link_defaults($nid)

Returns an array with default values for a book page's menu link.


$nid: The ID of the node whose menu link is being created.

Return value

The default values for the menu link.


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


function _book_link_defaults($nid) {
  return array('original_bid' => 0, 'menu_name' => '', 'nid' => $nid, 'bid' => 0, 'router_path' => 'node/%', 'plid' => 0, 'mlid' => 0, 'has_children' => 0, 'weight' => 0, 'module' => 'book', 'options' => array());