You are here

function book_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/book/book.module \book_theme()
  2. 6 modules/book/book.module \book_theme()
  3. 9 core/modules/book/book.module \book_theme()

Implements hook_theme().

File

modules/book/book.module, line 38
Allows users to create and organize related content in an outline.

Code

function book_theme() {
  return array(
    'book_navigation' => array(
      'variables' => array(
        'book_link' => NULL,
      ),
      'template' => 'book-navigation',
    ),
    'book_export_html' => array(
      'variables' => array(
        'title' => NULL,
        'contents' => NULL,
        'depth' => NULL,
      ),
      'template' => 'book-export-html',
    ),
    'book_admin_table' => array(
      'render element' => 'form',
    ),
    'book_title_link' => array(
      'variables' => array(
        'link' => NULL,
      ),
    ),
    'book_all_books_block' => array(
      'render element' => 'book_menus',
      'template' => 'book-all-books-block',
    ),
    'book_node_export_html' => array(
      'variables' => array(
        'node' => NULL,
        'children' => NULL,
      ),
      'template' => 'book-node-export-html',
    ),
  );
}