Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since #283723: Make menu_tree_output() return renderable output, menu_tree()
returns a renderable array instead of rendered HTML as claimed by the doxygen @return directive.
Comment | File | Size | Author |
---|---|---|---|
#2 | 851348-menu-returns-array-2.patch | 970 bytes | mr.baileys |
menu-returns-array.patch | 911 bytes | mr.baileys | |
Comments
Comment #1
jhodgdonGood catch.
Do you think that the @return should still be specific about the structured array being related to the requested menu tree, as it did before? I mean, " A structured array to be rendered by drupal_render()." is not very specific. The previous line there was "The rendered HTML of that menu on the current page.", which is more specific.
Comment #2
mr.baileysYes, agreed that it should be more specific, patch attached.
Comment #3
jhodgdonThanks - this version looks fine to me.
Comment #4
jhodgdonComment #5
webchickCommitted to HEAD!