function book_menu_link_load

Implements hook_TYPE_load().

File

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

Code

function book_menu_link_load($entities) {
  foreach ($entities as $entity) {

    // Change the bundle of menu links related to a book.
    if (strpos($entity->menu_name, 'book-toc-') === 0) {
      $entity->bundle = 'book-toc';
    }
  }
}