function book_get_books

Returns an array of all books.

@todo Remove in favor of BookManager Service. http://drupal.org/node/1963894

This list may be used for generating a list of all the books, or for building the options for a form select.

Return value

An array of all books.

2 calls to book_get_books()
BookNavigationBlock::build in drupal/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php
Builds and returns the renderable array for this block plugin.
_book_add_form_elements in drupal/core/modules/book/book.module
Builds the common elements of the book form for the node and outline forms.
2 string references to 'book_get_books'
book_node_predelete in drupal/core/modules/book/book.module
Implements hook_node_predelete().
_book_update_outline in drupal/core/modules/book/book.module
Handles additions and updates to the book outline.

File

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

Code

function book_get_books() {
  return Drupal::service('book.manager')
    ->getAllBooks();
}