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/translation | |
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/translation')
-rw-r--r-- | modules/translation/translation.module | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index af295bd20..2fb710e50 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -65,7 +65,6 @@ function translation_menu() { 'access arguments' => array(1), 'type' => MENU_LOCAL_TASK, 'weight' => 2, - 'theme callback' => '_node_custom_theme', 'file' => 'translation.pages.inc', ); return $items; @@ -89,10 +88,12 @@ function _translation_tab_access($node) { * Implements hook_admin_paths(). */ function translation_admin_paths() { - $paths = array( - 'node/*/translate' => TRUE, - ); - return $paths; + if (variable_get('node_admin_theme')) { + $paths = array( + 'node/*/translate' => TRUE, + ); + return $paths; + } } /** |