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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Good 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.

mr.baileys’s picture

Yes, agreed that it should be more specific, patch attached.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thanks - this version looks fine to me.

jhodgdon’s picture

Title: menu_tree() returns a renderable array, not rendered HTML » Fix doc: menu_tree() returns a renderable array, not rendered HTML
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.