- Patch #19169 by TDobes: allow the book navigation to be themed.

4.6.x
Dries Buytaert 2005-03-22 18:34:20 +00:00
parent f8d634e38a
commit a7fa9552ca
2 changed files with 8 additions and 4 deletions

View File

@ -439,7 +439,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
foreach ($book as $key => $value) { foreach ($book as $key => $value) {
$node->$key = $value; $node->$key = $value;
} }
$node = book_navigation($node); $node = theme('book_navigation', $node);
if ($page) { if ($page) {
menu_set_location($node->breadcrumb); 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 * Prepares both the custom breadcrumb trail and the forward/backward
* navigation for a node presented as a book page. * navigation for a node presented as a book page.
*
* @ingroup themeable
*/ */
function book_navigation($node) { function theme_book_navigation($node) {
$path = book_location($node); $path = book_location($node);
// Construct the breadcrumb: // Construct the breadcrumb:

View File

@ -439,7 +439,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
foreach ($book as $key => $value) { foreach ($book as $key => $value) {
$node->$key = $value; $node->$key = $value;
} }
$node = book_navigation($node); $node = theme('book_navigation', $node);
if ($page) { if ($page) {
menu_set_location($node->breadcrumb); 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 * Prepares both the custom breadcrumb trail and the forward/backward
* navigation for a node presented as a book page. * navigation for a node presented as a book page.
*
* @ingroup themeable
*/ */
function book_navigation($node) { function theme_book_navigation($node) {
$path = book_location($node); $path = book_location($node);
// Construct the breadcrumb: // Construct the breadcrumb: