summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-03-22 18:34:20 +0000
committerDries Buytaert <dries@buytaert.net>2005-03-22 18:34:20 +0000
commita7fa9552cada7d77bd340390c1e28d9cf9181e58 (patch)
tree5063810077c8de449e95b5f658a3bd9be246ea19 /modules
parentf8d634e38a776769a0ee9b2f6fe6d87cf778ef6a (diff)
downloadbrdo-a7fa9552cada7d77bd340390c1e28d9cf9181e58.tar.gz
brdo-a7fa9552cada7d77bd340390c1e28d9cf9181e58.tar.bz2
- Patch #19169 by TDobes: allow the book navigation to be themed.
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module6
-rw-r--r--modules/book/book.module6
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module
index ae744eac9..76bb98b60 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -439,7 +439,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
foreach ($book as $key => $value) {
$node->$key = $value;
}
- $node = book_navigation($node);
+ $node = theme('book_navigation', $node);
if ($page) {
menu_set_location($node->breadcrumb);
}
@@ -452,8 +452,10 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
/**
* Prepares both the custom breadcrumb trail and the forward/backward
* navigation for a node presented as a book page.
+ *
+ * @ingroup themeable
*/
-function book_navigation($node) {
+function theme_book_navigation($node) {
$path = book_location($node);
// Construct the breadcrumb:
diff --git a/modules/book/book.module b/modules/book/book.module
index ae744eac9..76bb98b60 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -439,7 +439,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
foreach ($book as $key => $value) {
$node->$key = $value;
}
- $node = book_navigation($node);
+ $node = theme('book_navigation', $node);
if ($page) {
menu_set_location($node->breadcrumb);
}
@@ -452,8 +452,10 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
/**
* Prepares both the custom breadcrumb trail and the forward/backward
* navigation for a node presented as a book page.
+ *
+ * @ingroup themeable
*/
-function book_navigation($node) {
+function theme_book_navigation($node) {
$path = book_location($node);
// Construct the breadcrumb: