function book_render

Page callback: Prints a listing of all books.

See also

book_menu()

1 string reference to 'book_render'
book_menu in drupal/core/modules/book/book.module
Implements hook_menu().

File

drupal/core/modules/book/book.pages.inc, line 17
User page callbacks for the book module.

Code

function book_render() {
  $book_list = array();
  foreach (book_get_books() as $book) {
    $book_list[] = l($book['title'], $book['href'], $book['options']);
  }
  return theme('item_list', array(
    'items' => $book_list,
  ));
}