Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Aug 2009 at 14:00 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drifter commentedComment #2
drifter commentedSorry, n00b mistake - submitting patch again for the test bot.
Comment #3
gábor hojtsyLooks like a good idea. It might be better to somehow generalize this though, since other contrib actions might want to have the same? This would solve it for core, but what about other contrib modules?
Comment #4
drifter commentedWell, where would it make sense to do so? Add an 'admin theme' key to hook_menu, which will trigger the admin theme if TRUE?
Or go further and allow hook_menu to specify an arbitrary theme?
Or maybe hook_menu is the wrong place to define this?
Comment #5
drifter commentedI see there is a related issue: #346573 Setting administration theme visibility by path and role (other then /admin and content editing now) - which works similarly to the block visibility settings, allowing more pages to use the admin theme. It's a more generalized solution, and doesn't involve hook_menu :)
Then again, I do feel that node/%/translate belongs to the "node editing pages", and you shouldn't need to specify it explicitly.
Comment #6
seutje commentedI agree with drifter that we shouldn't explicitly need to do it for this page as it is obviously part of editing content but we do need those underlying mechanisms for allowing contrib modules to specify which pages are admin pages, but I think we would need to split it up in admin_page and node_admin_page so we can still take in account if the user has the "Use the administration theme when editing or creating content" option enabled
Comment #7
joris_luciusI couldn't find this that fast for D6. But, if you want also want this implemented in D6, use hook_init in your module:
(not extensively tested yet)
Comment #9
adraskoy commentedsolution in #7 works for me in D6. I added it into the i18n_init, just after the check to see if this is the front page.
Comment #10
drifter commentedDrupal 7 has hook_admin_paths() - it solves this problem too, so marking it as fixed.
http://api.drupal.org/api/function/hook_admin_paths/7