function _book_link_defaults

7.x book.module _book_link_defaults($nid)
6.x book.module _book_link_defaults($nid)

Return an array with default values for a book link.

2 calls to _book_link_defaults()
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 771
Allows users to structure the pages of a site in a hierarchy or outline.

Code

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());
}