Modules like 'book' can call menu_set_active_menu_name() subsequent to hook_init() (where menu_breadcrumb is making its decisions), meaning the chosen menu can be lost.

This patch enables the name of the menu picked by menu_breadcrumb to be retrieved, which means there is provision for dealing with such situations in custom code.

Extracted from #556552: Menu weights, black/white list, and memory of menu selection. If I've made an error in splitting out this piece of functionality, please compare against that version (which has been tested).

CommentFileSizeAuthor
mb_memory.patch3.19 KBjweowu

Comments

xurizaemon’s picture

Status: Needs review » Needs work

@jweowu, this patch no longer applies against CVS HEAD, probably as a result of updates to #595282: Menu weights.

Do you want to re-roll this one?

jweowu’s picture

Yep, will do.

xurizaemon’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Cleaning up issue queue. Closing all D6 issues.

If you believe this issue still applies to a supported version, feel free to re-open it. That would be a great time to check if the issue contains clear steps for reproducing the bug!

Thanks and sorry for any inconvenience.