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
9cb3430e
Commit
9cb3430e
authored
Dec 02, 2001
by
Dries
Browse files
- Added "add new comment"-link (derived from a patch by Axel)
parent
53e12880
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
9cb3430e
...
...
@@ -80,7 +80,7 @@ function book_save($op, $node) {
}
function
book_link
(
$type
,
$node
=
0
)
{
function
book_link
(
$type
,
$node
=
0
,
$main
=
0
)
{
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
$links
[]
=
"<a href=
\"
module.php?mod=book
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
...
...
@@ -89,7 +89,7 @@ function book_link($type, $node = 0) {
$links
[]
=
"<a href=
\"
admin.php?mod=book
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
if
(
$type
==
"node"
&&
$node
->
type
==
"book"
)
{
if
(
$main
==
0
&&
$type
==
"node"
&&
$node
->
type
==
"book"
)
{
$links
[]
=
"<a href=
\"
module.php?mod=node&op=edit&id=
$node->nid
\"
>"
.
t
(
"update this book page"
)
.
"</a>"
;
}
...
...
modules/book/book.module
View file @
9cb3430e
...
...
@@ -80,7 +80,7 @@ function book_save($op, $node) {
}
function
book_link
(
$type
,
$node
=
0
)
{
function
book_link
(
$type
,
$node
=
0
,
$main
=
0
)
{
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
$links
[]
=
"<a href=
\"
module.php?mod=book
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
...
...
@@ -89,7 +89,7 @@ function book_link($type, $node = 0) {
$links
[]
=
"<a href=
\"
admin.php?mod=book
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
if
(
$type
==
"node"
&&
$node
->
type
==
"book"
)
{
if
(
$main
==
0
&&
$type
==
"node"
&&
$node
->
type
==
"book"
)
{
$links
[]
=
"<a href=
\"
module.php?mod=node&op=edit&id=
$node->nid
\"
>"
.
t
(
"update this book page"
)
.
"</a>"
;
}
...
...
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