Commit 7e1fda54 authored by webchick's avatar webchick

#655508 by David_Rothstein and Dave Reid: Define more node-related pages to hook_admin_paths().

parent 56a3eea5
......@@ -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().
*/
......
......@@ -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,
);
......
......@@ -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().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment