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
7e1fda54
Commit
7e1fda54
authored
Dec 29, 2009
by
webchick
Browse files
#655508
by David_Rothstein and Dave Reid: Define more node-related pages to hook_admin_paths().
parent
56a3eea5
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/book/book.module
View file @
7e1fda54
...
...
@@ -212,6 +212,17 @@ function _book_outline_remove_access($node) {
return
isset
(
$node
->
book
)
&&
(
$node
->
book
[
'bid'
]
!=
$node
->
nid
)
&&
_book_outline_access
(
$node
);
}
/**
* Implements hook_admin_paths().
*/
function
book_admin_paths
()
{
$paths
=
array
(
'node/*/outline'
=>
TRUE
,
'node/*/outline/remove'
=>
TRUE
,
);
return
$paths
;
}
/**
* Implements hook_init().
*/
...
...
modules/node/node.module
View file @
7e1fda54
...
...
@@ -253,9 +253,11 @@ function node_entity_info() {
*/
function
node_admin_paths
()
{
$paths
=
array
(
'node/*/add'
=>
TRUE
,
'node/*/edit'
=>
TRUE
,
'node/*/delete'
=>
TRUE
,
'node/*/revisions'
=>
TRUE
,
'node/*/revisions/*/revert'
=>
TRUE
,
'node/*/revisions/*/delete'
=>
TRUE
,
'node/add'
=>
TRUE
,
'node/add/*'
=>
TRUE
,
);
...
...
modules/translation/translation.module
View file @
7e1fda54
...
...
@@ -84,6 +84,16 @@ function _translation_tab_access($node) {
return
FALSE
;
}
/**
* Implements hook_admin_paths().
*/
function
translation_admin_paths
()
{
$paths
=
array
(
'node/*/translate'
=>
TRUE
,
);
return
$paths
;
}
/**
* Implements hook_permission().
*/
...
...
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