In #1847198: Update the structure returned by hook_toolbar() we finalized the API for hook_toolbar(). We still have to decide how the pre-render and theme functions interact.
Some changes to consider (not necessarily a complete list):
- Remove
drupal_render_children()fromtoolbar_pre_render(). - Replace the
'#heading'property of the tray with a property of the toolbar item. - Generally review the code.
Comments
Comment #8
nod_Don't remember what #2 refers to.
Comment #14
smustgrave commentedClosing this as outdated as additional information was requested in #8 3 years ago.
If still a valid task please reopen addressing the point and updating issue summary following the default template.
Thanks!