book-all-books-block.tpl.php

  1. 7.x drupal/modules/book/book-all-books-block.tpl.php
  2. 6.x drupal/modules/book/book-all-books-block.tpl.php

Default theme implementation for rendering book outlines within a block.

This template is used only when the block is configured to "show block on all pages", which presents multiple independent books on all pages.

Available variables:

  • $book_menus: Array of book outlines keyed to the parent book ID. Call render() on each to print it as an unordered list.

See also

template_preprocess_book_all_books_block()

2 string references to the theme hook from book-all-books-block.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

book_block_view in drupal/modules/book/book.module
Implements hook_block_view().
book_theme in drupal/modules/book/book.module
Implements hook_theme().

File

drupal/modules/book/book-all-books-block.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for rendering book outlines within a block.
  5. *
  6. * This template is used only when the block is configured to "show block on all
  7. * pages", which presents multiple independent books on all pages.
  8. *
  9. * Available variables:
  10. * - $book_menus: Array of book outlines keyed to the parent book ID. Call
  11. * render() on each to print it as an unordered list.
  12. *
  13. * @see template_preprocess_book_all_books_block()
  14. *
  15. * @ingroup themeable
  16. */
  17. ?>
  18. <?php foreach ($book_menus as $book_id => $menu): ?>
  19. <div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
  20. <?php print render($menu); ?>
  21. </div>
  22. <?php endforeach; ?>

Related topics