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.
- Created several menu blocks.
- Used menu_block_export to create a small module.
- Enabling this on another site.
- Blocks were created and rendered, but no menu block settings were utilized.
Assume that entries are not suppose to be made in the variable table for exported blocks?
Does the menu_block_ids need to update for the menu block settings to fire?
Comments
Comment #1
doublejosh CreditAttribution: doublejosh commentedComment #2
doublejosh CreditAttribution: doublejosh commentedLooks like folks have found settings not working...
#1108548: Exported menu links always have the menu name as title
#1108558: Level setting on exported blocks not working
Comment #3
doublejosh CreditAttribution: doublejosh commentedSeems to me there is something wrong with
menu_block_get_config()
since it does have the exported block settings available within$blocks
but can't match up the delta because that's just a number value.Comment #4
doublejosh CreditAttribution: doublejosh commentedThe issue actually ended up being that Features + Context listed the block deltas as just a single number, so the delta would never match. Updated by context entry in the feature and away we go.
Comment #5
Torenware CreditAttribution: Torenware commentedJosh,
I don't understand what you mean by:
This is a fix you made against menu_block, a fix that somebody made against features (and if so, for what version), or is the current behavior (which is mystifying) actually "working as designed"?
Comment #6
doublejosh CreditAttribution: doublejosh commentedSure.
My workaround was to add more descriptive deltas into the export code, then match those in my context saved as a feature.
The menu_block_export module outputs deltas as just a number...
Which I changed to...
Then I referenced this block in my feature and it worked.
Comment #6.0
doublejosh CreditAttribution: doublejosh commenteduse a list.