Closed (outdated)
Project:
Toolbar
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Aug 2010 at 15:05 UTC
Updated:
1 Jul 2026 at 10:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dankh commentedGreat idea, thank you ! I have just added one more check in the function :
Comment #2
dankh commentedhttp://drupal.org/cvs?commit=408850
Comment #4
decipheredCSS and JS is still attached even if menu is suppressed.
Comment #5
dankh commentedConfirmed. Please review and test patch.
Comment #6
decipheredUnfortunately the problem with detecting for _suppress() in hook_init() is that if the module trying to invoke the suppress is weighted after Toolbar it won't be able to call suppress before it's checked for.
If the CSS and JS need to be added in hook_init() then they will need to be done in a way that they don't do anything unless the the content added during hook_footer() is present.
Comment #7
dankh commentedOk, I get your point. hook_preprocess_page is executed before hook_init. So I moved the css and js includes in hook_preprocess_page this way regardless the module weight the suppress will work. I have tested already even with weight tweaking. Please review and test.
Comment #8
dankh commentedComment preview doesn't work with attachments so again here is the patch.
Comment #9
decipheredLooks good. Marking as RTBC.
Now Admin, Admin Menu and Toolbar can all live in unison via the Administration Menu select module :)
Comment #10
dydave commentedThanks everyone for the efforts and work on this issue! 🙏
Too bad this never got committed, since it was RTBC ... but there's not much point at this stage anymore... 😅
More than 15 years of inactivity on this issue for the Drupal 6 version of the module which is not supported anymore.
Therefore, closing as Outdated, for now.
Feel free to let us know if you have any questions or concerns on any aspects of this issue or the project in general, we would surely be glad to help. 😊
Thanks in advance!