function _book_link_defaults

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

Parameters

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

Return value

The default values for the menu link.

2 calls to _book_link_defaults()
book_node_prepare in modules/book/book.module
Implements hook_node_prepare().
book_outline_form in modules/book/book.pages.inc
Form constructor for the book outline form.

File

modules/book/book.module, line 1060

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.