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
f5d3fa10
Commit
f5d3fa10
authored
Nov 24, 2005
by
Dries
Browse files
- Patch
#38296
by Tobias Maier: fixed bug with book links.
parent
19e1867d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
f5d3fa10
...
...
@@ -487,7 +487,7 @@ function theme_book_navigation($node) {
}
if
(
$prev
=
book_prev
(
$node
))
{
drupal_add_link
(
array
(
'rel'
=>
'prev'
,
'href'
=>
'node/'
.
$prev
->
nid
));
drupal_add_link
(
array
(
'rel'
=>
'prev'
,
'href'
=>
url
(
'node/'
.
$prev
->
nid
))
)
;
$links
.
=
'<div class="prev">'
;
$links
.
=
l
(
t
(
'previous'
),
'node/'
.
$prev
->
nid
,
array
(
'title'
=>
t
(
'View the previous page.'
)));
$links
.
=
'</div>'
;
...
...
@@ -497,7 +497,7 @@ function theme_book_navigation($node) {
$links
.
=
'<div class="prev"> </div>'
;
// Make an empty div to fill the space.
}
if
(
$next
=
book_next
(
$node
))
{
drupal_add_link
(
array
(
'rel'
=>
'next'
,
'href'
=>
'node/'
.
$next
->
nid
));
drupal_add_link
(
array
(
'rel'
=>
'next'
,
'href'
=>
url
(
'node/'
.
$next
->
nid
))
)
;
$links
.
=
'<div class="next">'
;
$links
.
=
l
(
t
(
'next'
),
'node/'
.
$next
->
nid
,
array
(
'title'
=>
t
(
'View the next page.'
)));
$links
.
=
'</div>'
;
...
...
@@ -507,7 +507,7 @@ function theme_book_navigation($node) {
$links
.
=
'<div class="next"> </div>'
;
// Make an empty div to fill the space.
}
if
(
$node
->
parent
)
{
drupal_add_link
(
array
(
'rel'
=>
'index'
,
'href'
=>
'node/'
.
$node
->
parent
));
drupal_add_link
(
array
(
'rel'
=>
'index'
,
'href'
=>
url
(
'node/'
.
$node
->
parent
))
)
;
$links
.
=
'<div class="up">'
;
$links
.
=
l
(
t
(
'up'
),
'node/'
.
$node
->
parent
,
array
(
'title'
=>
t
(
'View this page\'s parent section.'
)));
$links
.
=
'</div>'
;
...
...
modules/book/book.module
View file @
f5d3fa10
...
...
@@ -487,7 +487,7 @@ function theme_book_navigation($node) {
}
if
(
$prev
=
book_prev
(
$node
))
{
drupal_add_link
(
array
(
'rel'
=>
'prev'
,
'href'
=>
'node/'
.
$prev
->
nid
));
drupal_add_link
(
array
(
'rel'
=>
'prev'
,
'href'
=>
url
(
'node/'
.
$prev
->
nid
))
)
;
$links
.
=
'<div class="prev">'
;
$links
.
=
l
(
t
(
'previous'
),
'node/'
.
$prev
->
nid
,
array
(
'title'
=>
t
(
'View the previous page.'
)));
$links
.
=
'</div>'
;
...
...
@@ -497,7 +497,7 @@ function theme_book_navigation($node) {
$links
.
=
'<div class="prev"> </div>'
;
// Make an empty div to fill the space.
}
if
(
$next
=
book_next
(
$node
))
{
drupal_add_link
(
array
(
'rel'
=>
'next'
,
'href'
=>
'node/'
.
$next
->
nid
));
drupal_add_link
(
array
(
'rel'
=>
'next'
,
'href'
=>
url
(
'node/'
.
$next
->
nid
))
)
;
$links
.
=
'<div class="next">'
;
$links
.
=
l
(
t
(
'next'
),
'node/'
.
$next
->
nid
,
array
(
'title'
=>
t
(
'View the next page.'
)));
$links
.
=
'</div>'
;
...
...
@@ -507,7 +507,7 @@ function theme_book_navigation($node) {
$links
.
=
'<div class="next"> </div>'
;
// Make an empty div to fill the space.
}
if
(
$node
->
parent
)
{
drupal_add_link
(
array
(
'rel'
=>
'index'
,
'href'
=>
'node/'
.
$node
->
parent
));
drupal_add_link
(
array
(
'rel'
=>
'index'
,
'href'
=>
url
(
'node/'
.
$node
->
parent
))
)
;
$links
.
=
'<div class="up">'
;
$links
.
=
l
(
t
(
'up'
),
'node/'
.
$node
->
parent
,
array
(
'title'
=>
t
(
'View this page\'s parent section.'
)));
$links
.
=
'</div>'
;
...
...
Write
Preview
Supports
Markdown
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