book_render

function book_render

book_render()

Menu callback: Prints a listing of all books.

Return value

string A HTML-formatted string with the listing of all books content.

See also

book_menu()

File

modules/book/book.pages.inc, line 16
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));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.pages.inc/function/book_render/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部