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.
How to automatically set a newly created menu as available so that it can immediate be used when configured for "the menu selected by the page"?
I've tried setting the 'menu_block_menu_order' variable through code, upon a new menu creation, but haven't figured it out.
What's the best way to automatically set a new menu , or all menus, as available?
Comment | File | Size | Author |
---|---|---|---|
#4 | 2335155-edit-menu-order-from-menu-forms.patch | 2.24 KB | Dave Reid |
#3 | 2335155-edit-menu-order-from-menu-forms.patch | 3.18 KB | Dave Reid |
#2 | 2335155-edit-menu-order-from-menu-forms.patch | 2.92 KB | Dave Reid |
Comments
Comment #1
dargente CreditAttribution: dargente commentedComment #2
Dave ReidIt wasn't possible before. But with this patch it should be!
Comment #3
Dave ReidFinal version.
Comment #4
Dave ReidTrying to be too cute here, let's simplify it a bit.
Comment #6
Dave ReidCommitted #4 to 7.x-2.x.