_book_link_defaults

Versions
6 – 7
_book_link_defaults($nid)

Return an array with default values for a book link.

▾ 2 functions call _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.

Code

modules/book/book.module, line 771

<?php
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());
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.