summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/book.module10
-rw-r--r--modules/book/book.module10
2 files changed, 12 insertions, 8 deletions
diff --git a/modules/book.module b/modules/book.module
index 1ec711153..3f7c38bc1 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if ($node->pid) $output .= book_export_html($node->pid, $depth + 1);
$output .= book_export_html($node->nid, $depth + 1);
}
+
return $output;
}
-function book_export($uri) {
- $uri = explode("&", $uri);
- if ($uri[0] == "book") {
- print book_export_html($uri[1], $depth = 1);
+function book_export($query) {
+ global $book;
+
+ if ($book) {
+ print book_export_html($book, $depth = 1);
}
}
diff --git a/modules/book/book.module b/modules/book/book.module
index 1ec711153..3f7c38bc1 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -286,13 +286,15 @@ function book_export_html($parent = "", $depth = 0) {
if ($node->pid) $output .= book_export_html($node->pid, $depth + 1);
$output .= book_export_html($node->nid, $depth + 1);
}
+
return $output;
}
-function book_export($uri) {
- $uri = explode("&", $uri);
- if ($uri[0] == "book") {
- print book_export_html($uri[1], $depth = 1);
+function book_export($query) {
+ global $book;
+
+ if ($book) {
+ print book_export_html($book, $depth = 1);
}
}