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()
2 string references to 'book_get_books'

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