book-all-books-block.tpl.php

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

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 rendered as an unordered list. It is keyed to the parent book ID which is also the ID of the parent node containing an entire outline.

See also

template_preprocess_book_all_books_block()

1 theme call to book-all-books-block.tpl.php
book_block in drupal-6.x/modules/book/book.module
Implementation of hook_block().

File

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