function book_link_load

Gets a book menu link by its menu link ID.

Like menu_link_load(), but adds additional data from the {book} table.

Do not call when loading a node, since this function may call node_load().

Parameters

$mlid: The menu link ID of the menu item.

Return value

A menu link, with the link translated for rendering and data added from the {book} table. FALSE if there is an error.

2 calls to book_link_load()
book_node_prepare in drupal/core/modules/book/book.module
Implements hook_node_prepare().
template_preprocess_book_navigation in drupal/core/modules/book/book.module
Prepares variables for book navigation templates.

File

drupal/core/modules/book/book.module, line 1271
Allows users to create and organize related content in an outline.

Code

function book_link_load($mlid) {
  return entity_load('menu_link', $mlid);
}