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.
Problem/Motivation
In case both book and menu_ui modules are enabled, tokens for node's menu aren't available.
Steps to reproduce
Install site, enable both book and menu_ui modules, check in pathauto that node's menu tokens aren't available.
Proposed resolution
Merge arrays recursively, otherwise they'll override each other
Remaining tasks
Confirm issue and merge fix
User interface changes
no
API changes
no
Data model changes
no
Issue fork token-3427474
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mirom CreditAttribution: mirom as a volunteer commentedComment #4
BerdirCan we test this? Enable book in TokenMenuTest?
Comment #5
johnny5th CreditAttribution: johnny5th at RBN Energy, LLC. commentedI'm also seeing this issue. Disabling book fixes the menu-link tokens.
Comment #7
BerdirMerged. I had a quick look at a test, but had some weird unrelated issues locally. possibly we can move the book tokens to contrib book module and drop this.
Comment #8
mirom CreditAttribution: mirom for CSGov commented