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
2410cf51
Commit
2410cf51
authored
Feb 28, 2002
by
Kjartan
Browse files
- changed the access on the menu.create link to post content.
http://www.drupal.org/node.php?id=91
parent
147cd225
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
2410cf51
...
...
@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links
[]
=
"<a href=
\"
module.php?mod=book
\"
title=
\"
"
.
t
(
"Read and contribute to the collaborative books."
)
.
"
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
if
(
$type
==
"menu.create"
&&
user_access
(
"
administer nodes
"
))
{
if
(
$type
==
"menu.create"
&&
user_access
(
"
post content
"
))
{
$links
[]
=
"<a href=
\"
module.php?mod=node&op=add&type=book
\"
title=
\"
"
.
t
(
"Add a new book page."
)
.
"
\"
>"
.
t
(
"create book page"
)
.
"</a>"
;
}
...
...
modules/book/book.module
View file @
2410cf51
...
...
@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links
[]
=
"<a href=
\"
module.php?mod=book
\"
title=
\"
"
.
t
(
"Read and contribute to the collaborative books."
)
.
"
\"
>"
.
t
(
"collaborative book"
)
.
"</a>"
;
}
if
(
$type
==
"menu.create"
&&
user_access
(
"
administer nodes
"
))
{
if
(
$type
==
"menu.create"
&&
user_access
(
"
post content
"
))
{
$links
[]
=
"<a href=
\"
module.php?mod=node&op=add&type=book
\"
title=
\"
"
.
t
(
"Add a new book page."
)
.
"
\"
>"
.
t
(
"create 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