diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-27 20:25:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-27 20:25:44 +0000 |
commit | 84c72d06f03163115ae9bbc939e6ab2dbc65eb28 (patch) | |
tree | 70506c548713a51c9f9e51e866849b5858de46fd /modules/book | |
parent | 22cfc5bb2cf84d88356b50ab8f497add152d1858 (diff) | |
download | brdo-84c72d06f03163115ae9bbc939e6ab2dbc65eb28.tar.gz brdo-84c72d06f03163115ae9bbc939e6ab2dbc65eb28.tar.bz2 |
- Patch #669510 by quicksketch, David_Rothstein, Dave Reid, casey, Gábor Hojtsy, mrfelton, effulgentsia: merge administration theme with hook_admin_paths().
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 14 |
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; + } } /** |