summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 06:42:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 06:42:42 +0000
commit0571fe336884b9efc5e67c7242583171fedf91b3 (patch)
treecdf97ac31bc8baf5e1dd2635ea74b7cacd92937a /modules/book
parentd2885d927e7e2613751d6539bb9abfdf0de878b1 (diff)
downloadbrdo-0571fe336884b9efc5e67c7242583171fedf91b3.tar.gz
brdo-0571fe336884b9efc5e67c7242583171fedf91b3.tar.bz2
#633134 by arianek and jhodgdon: Update Book Module to new help documentation standards.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.module50
1 files changed, 27 insertions, 23 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 9c0778b89..f31754598 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -7,6 +7,33 @@
*/
/**
+ * Implement hook_help().
+ */
+function book_help($path, $arg) {
+ switch ($path) {
+ case 'admin/help#book':
+ $output = '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('The Book module is used for creating structured, multi-page content, such as site resource guides, manuals, and wikis. It allows you to create content that has chapters, sections, subsections, or any similarly tiered structure. For more information, see the online handbook entry for <a href="@book">Book module</a>.', array('@book' => 'http://drupal.org/handbook/modules/book/')) . '</p>';
+ $output .= '<h3>' . t('Uses') . '</h3>';
+ $output .= '<dl>';
+ $output .= '<dt>' . t('Adding and managing book content') . '</dt>';
+ $output .= '<dd>' . t('You can assign separate permissions for <em>creating</em>, <em>editing</em>, and <em>deleting</em> book content, as well as <em>adding content to books</em>, and <em>creating new books</em>. Users with the <em>administer book outlines</em> permission can add <em>any</em> type of content to a book by selecting the appropriate book outline while editing the content. They can also view a list of all books, and edit and rearrange section titles on the <a href="@admin-book">Book administration page</a>.', array('@admin-book' => url('admin/content/book'))) . '</dd>';
+ $output .= '<dt>' . t('Book navigation') . '</dt>';
+ $output .= '<dd>' . t("Book pages have a default book-specific navigation block. This navigation block contains links that lead to the previous and next pages in the book, and to the level above the current page in the book's structure. This block can be enabled on the <a href='@admin-block'>Blocks administration page</a>. For book pages to show up in the book navigation, they must be added to a book outline.", array('@admin-block' => url('admin/structure/block'))) . '</dd>';
+ $output .= '<dt>' . t('Collaboration') . '</dt>';
+ $output .= '<dd>' . t('Books can be created collaboratively, as they allow users with appropriate permissions to add pages into existing books, and add those pages to a custom table of contents menu.') . '</dd>';
+ $output .= '<dt>' . t('Printing books') . '</dt>';
+ $output .= '<dd>' . t("Users with the <em>access printer-friendly version</em> permission can select the <em>printer-friendly version</em> link visible at the bottom of a book page's content to generate a printer-friendly display of the page and all of its subsections.") . '</dd>';
+ $output .= '</dl>';
+ return $output;
+ case 'admin/content/book':
+ return '<p>' . t('The book module offers a means to organize a collection of related content pages, collectively known as a book. When viewed, this content automatically displays 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 pages 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>';
+ }
+}
+
+/**
* Implement hook_theme().
*/
function book_theme() {
@@ -1142,29 +1169,6 @@ function book_node_type_update($type) {
}
/**
- * Implement hook_help().
- */
-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/structure/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>';
- }
-}
-
-/**
* Like menu_link_load(), but adds additional data from the {book} table.
*
* Do not call when loading a node, since this function may call node_load().