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

Return an array with default values for a book link.

1 call to _book_link_defaults()
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(),
  );
}