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
8fc513e1
Commit
8fc513e1
authored
Mar 30, 2009
by
webchick
Browse files
#408562
by BruceBGordon: Code clean-up.
parent
f85f7cf8
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/book/book.module
View file @
8fc513e1
...
...
@@ -72,8 +72,8 @@ function book_node_view_link($node, $teaser, $page) {
if
((
user_access
(
'add content to books'
)
||
user_access
(
'administer book outlines'
))
&&
node_access
(
'create'
,
$child_type
)
&&
$node
->
status
==
1
&&
$node
->
book
[
'depth'
]
<
MENU_MAX_DEPTH
)
{
$links
[
'book_add_child'
]
=
array
(
'title'
=>
t
(
'Add child page'
),
'href'
=>
"
node/add/
"
.
str_replace
(
'_'
,
'-'
,
$child_type
),
'query'
=>
"
parent=
"
.
$node
->
book
[
'mlid'
],
'href'
=>
'
node/add/
'
.
str_replace
(
'_'
,
'-'
,
$child_type
),
'query'
=>
'
parent=
'
.
$node
->
book
[
'mlid'
],
);
}
...
...
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