Closed (won't fix)
Project:
Administration menu
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2009 at 21:57 UTC
Updated:
5 Oct 2010 at 03:03 UTC
I have an admin theme and I only want the admin menu to show on my admin theme. That is because our site theme is so outdated that it breaks the admin menu toolbar. The easiest solution is just to show it on the admin pages, I don't know the easiest way to make that happen.
Comments
Comment #1
scott m. sanders commentedCheck that User Management > Permissions > Admin_Menu Module > Access Admin Menu is enabled only for your admin users or those who use your admin theme.
Comment #2
drupalninja99 commentedwell but that doesn't solve the issue bc it still shows up on the non-admin pages where it is broken. i want it only showing for the admin theme.
Comment #3
vm commentedAs far as I can tell, there is no way to do what you ask at this time, mainly because the admin menu isn't a block. Thus this would be a feature request.
Comment #4
sunAdministration menu's overall goal and purpose is to provide a consistent and always available administration interface for a site.
I don't see an explanation for an actual use-case in here, but this request in itself is counter-productive to admin_menu's mission.
Comment #5
ntrepid8 commentedLooks like you can disable it for certain themes. See this excerpt from the readme:
Q: How can the administration menu be hidden on certain pages?
A: You can suppress it by simply calling the following function in PHP:
module_invoke('admin_menu', 'suppress');
However, this needs to happen as early as possible in the page request, so
placing it in the theming layer (resp. a page template file) is too late.
Ideally, the function is called in hook_init() in a custom module. If you do
not have a custom module, placing it into some conditional code at the top of
template.php may work out, too.