Same name and namespace in other branches
  1. 4.6.x modules/book.module \book_render()
  2. 4.7.x modules/book.module \book_render()
  3. 5.x modules/book/book.module \book_render()
  4. 7.x modules/book/book.pages.inc \book_render()

Menu callback; prints a listing of all books.

1 string reference to 'book_render'
book_menu in modules/book/book.module
Implementation of hook_menu().

File

modules/book/book.pages.inc, line 11
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', $book_list);
}