summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index a59de8179..25f0254d2 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -174,7 +174,6 @@ function book_menu() {
'page arguments' => array(1),
'access callback' => '_book_outline_access',
'access arguments' => array(1),
- 'theme callback' => '_node_custom_theme',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'book.pages.inc',
@@ -185,7 +184,6 @@ function book_menu() {
'page arguments' => array('book_remove_form', 1),
'access callback' => '_book_outline_remove_access',
'access arguments' => array(1),
- 'theme callback' => '_node_custom_theme',
'file' => 'book.pages.inc',
);
@@ -210,11 +208,13 @@ function _book_outline_remove_access($node) {
* Implements hook_admin_paths().
*/
function book_admin_paths() {
- $paths = array(
- 'node/*/outline' => TRUE,
- 'node/*/outline/remove' => TRUE,
- );
- return $paths;
+ if (variable_get('node_admin_theme')) {
+ $paths = array(
+ 'node/*/outline' => TRUE,
+ 'node/*/outline/remove' => TRUE,
+ );
+ return $paths;
+ }
}
/**