You are here

function _book_link_defaults in Drupal 6

Same name and namespace in other branches
  1. 7 modules/book/book.module \_book_link_defaults()

Return an array with default values for a book link.

2 calls to _book_link_defaults()
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.

File

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