Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a7fa9552
Commit
a7fa9552
authored
Mar 22, 2005
by
Dries
Browse files
- Patch
#19169
by TDobes: allow the book navigation to be themed.
parent
f8d634e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
a7fa9552
...
...
@@ -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:
...
...
modules/book/book.module
View file @
a7fa9552
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment