You are here

function book_help in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/book/book.module \book_help()
  2. 4 modules/book.module \book_help()
  3. 5 modules/book/book.module \book_help()
  4. 7 modules/book/book.module \book_help()
  5. 9 core/modules/book/book.module \book_help()

Implementation of hook_help().

File

modules/book/book.module, line 1002
Allows users to structure the pages of a site in a hierarchy or outline.

Code

function book_help($path, $arg) {
  switch ($path) {
    case 'admin/help#book':
      $output = '<p>' . t('The book module is suited for creating structured, multi-page hypertexts such as site resource guides, manuals, and Frequently Asked Questions (FAQs). It permits a document to have chapters, sections, subsections, etc. Authors with suitable permissions can add pages to a collaborative book, placing them into the existing document by adding them to a table of contents menu.') . '</p>';
      $output .= '<p>' . t('Pages in the book hierarchy have navigation elements at the bottom of the page for moving through the text. These links lead to the previous and next pages in the book, and to the level above the current page in the book\'s structure. More comprehensive navigation may be provided by enabling the <em>book navigation block</em> on the <a href="@admin-block">blocks administration page</a>.', array(
        '@admin-block' => url('admin/build/block'),
      )) . '</p>';
      $output .= '<p>' . t('Users can select the <em>printer-friendly version</em> link visible at the bottom of a book page to generate a printer-friendly display of the page and all of its subsections. ') . '</p>';
      $output .= '<p>' . t("Users with the <em>administer book outlines</em> permission can add a post of any content type to a book, by selecting the appropriate book while editing the post or by using the interface available on the post's <em>outline</em> tab.") . '</p>';
      $output .= '<p>' . t('Administrators can view a list of all books on the <a href="@admin-node-book">book administration page</a>. The <em>Outline</em> page for each book allows section titles to be edited or rearranged.', array(
        '@admin-node-book' => url('admin/content/book'),
      )) . '</p>';
      $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@book">Book module</a>.', array(
        '@book' => 'http://drupal.org/handbook/modules/book/',
      )) . '</p>';
      return $output;
    case 'admin/content/book':
      return '<p>' . t('The book module offers a means to organize a collection of related posts, collectively known as a book. When viewed, these posts automatically display links to adjacent book pages, providing a simple navigation system for creating and reviewing structured content.') . '</p>';
    case 'node/%/outline':
      return '<p>' . t('The outline feature allows you to include posts in the <a href="@book">book hierarchy</a>, as well as move them within the hierarchy or to <a href="@book-admin">reorder an entire book</a>.', array(
        '@book' => url('book'),
        '@book-admin' => url('admin/content/book'),
      )) . '</p>';
  }
}