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.
I have a block export looking like this:
return array(
'rvl_content-1' => array(
'menu_name' => 'main-menu',
'parent_mlid' => 0,
'title_link' => 0,
'admin_title' => 'Main menu, first level',
'level' => 1,
'follow' => 0,
'depth' => 1,
'expanded' => 0,
'sort' => 0,
),
'rvl_content-2' => array(
'menu_name' => 'main-menu',
'parent_mlid' => 0,
'title_link' => 0,
'admin_title' => 'Main menu, second level',
'level' => 2,
'follow' => 0,
'depth' => 1,
'expanded' => 0,
'sort' => 0,
),
);
As you can see, the level setting is set differently on each block, but when it's printed on the page, the blocks both display the first level menu items :(
Comments
Comment #1
doublejosh CreditAttribution: doublejosh commentedI found none of the exported menu block settings to work.
#1532434: Menu Block Export doesn't honor any menu block settings
Comment #2
JohnAlbinI can't reproduce. The issue linked in #1 mentioned some issue with Context not using the proper delta for the block.