From 29adfb4086c8ef6102d9f22f5351382485444be5 Mon Sep 17 00:00:00 2001
From: Dries Buytaert
Date: Sat, 9 Nov 2002 13:43:56 +0000
Subject: - Added printer-friendly links to the book pages.
---
modules/book.module | 6 +++---
modules/book/book.module | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'modules')
diff --git a/modules/book.module b/modules/book.module
index 098e79e31..e0639cbe8 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -110,6 +110,7 @@ function book_link($type, $node = 0, $main = 0) {
if ($type == "node" && $node->type == "book" && book_access("update", $node)) {
$links[] = lm(t("edit this page"), array("mod" => "node", "op" => "edit", "id" => $node->nid), "", array("title" => t("Suggest an update for this book page.")));
+ $links[] = lm(t("printer-friendly version"), array("mod" => "book", "op" => "print", "id" => $node->nid), "", array("title" => t("Show a printer-friendly version of this book page and its sub-pages.")));
}
return $links ? $links : array();
@@ -531,7 +532,7 @@ function book_page() {
if (user_access("access content")) {
switch ($op) {
- case "feed":
+ case "print":
print book_export_html($id, $depth = 1);
break;
default:
@@ -686,7 +687,6 @@ function book_admin_links() {
$links[] = la(t("book") .": ". check_output($book->title) ."", array("mod" => "book", "op" => "view", "id" => $book->nid));
}
$links[] = la(t("orphan pages"), array("mod" => "book", "op" => "orphan"));
- $links[] = lm(t("export to HTML"), array("mod" => "book", "op" => "feed"), "", array("title" => t("display all books in a single HTML page")));
$links[] = la(t("help"), array("mod" => "book", "op" => "help"));
return $links;
}
@@ -737,7 +737,7 @@ function book_help() {
Administrators may review the hierarchy of their books by clicking on the echo la("collaborative book link", array("mod" => "book")) ?> in the adminstration pages. There, nodes may be edited, reorganized, removed from book, and deleted. This behavior may change in the future. When a parent node is deleted, he may leave behind child nodes.
These nodes are now orphans. Administrators should periodically echo la("review their books for orphans", array("mod" => "book", "op" => "orphan")) ?> and reaffiliate those pages as desired. Finally, administrators may also
- echo la("export their books", array("mod" => "book", "op" => "feed")) ?> to a single, flat HTML page which is suitable for printing.
+ echo la("export their books", array("mod" => "book", "op" => "print")) ?> to a single, flat HTML page which is suitable for printing.
Maintain a FAQ using a collaborative book
diff --git a/modules/book/book.module b/modules/book/book.module
index 098e79e31..e0639cbe8 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -110,6 +110,7 @@ function book_link($type, $node = 0, $main = 0) {
if ($type == "node" && $node->type == "book" && book_access("update", $node)) {
$links[] = lm(t("edit this page"), array("mod" => "node", "op" => "edit", "id" => $node->nid), "", array("title" => t("Suggest an update for this book page.")));
+ $links[] = lm(t("printer-friendly version"), array("mod" => "book", "op" => "print", "id" => $node->nid), "", array("title" => t("Show a printer-friendly version of this book page and its sub-pages.")));
}
return $links ? $links : array();
@@ -531,7 +532,7 @@ function book_page() {
if (user_access("access content")) {
switch ($op) {
- case "feed":
+ case "print":
print book_export_html($id, $depth = 1);
break;
default:
@@ -686,7 +687,6 @@ function book_admin_links() {
$links[] = la(t("book") .": ". check_output($book->title) ."", array("mod" => "book", "op" => "view", "id" => $book->nid));
}
$links[] = la(t("orphan pages"), array("mod" => "book", "op" => "orphan"));
- $links[] = lm(t("export to HTML"), array("mod" => "book", "op" => "feed"), "", array("title" => t("display all books in a single HTML page")));
$links[] = la(t("help"), array("mod" => "book", "op" => "help"));
return $links;
}
@@ -737,7 +737,7 @@ function book_help() {
Administrators may review the hierarchy of their books by clicking on the echo la("collaborative book link", array("mod" => "book")) ?> in the adminstration pages. There, nodes may be edited, reorganized, removed from book, and deleted. This behavior may change in the future. When a parent node is deleted, he may leave behind child nodes.
These nodes are now orphans. Administrators should periodically echo la("review their books for orphans", array("mod" => "book", "op" => "orphan")) ?> and reaffiliate those pages as desired. Finally, administrators may also
- echo la("export their books", array("mod" => "book", "op" => "feed")) ?> to a single, flat HTML page which is suitable for printing.
+ echo la("export their books", array("mod" => "book", "op" => "print")) ?> to a single, flat HTML page which is suitable for printing.
Maintain a FAQ using a collaborative book
--
cgit v1.2.3