You are here

book-all-books-block.tpl.php in Drupal 7

Same filename and directory in other branches
  1. 6 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.

File

modules/book/book-all-books-block.tpl.php
View source
<?php

/**
 * @file
 * 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 template_preprocess_book_all_books_block()
 *
 * @ingroup themeable
 */
foreach ($book_menus as $book_id => $menu) {
  ?>
  <div id="book-block-menu-<?php

  print $book_id;
  ?>" class="book-block-menu">
    <?php

  print render($menu);
  ?>
  </div>
<?php

}

Related topics