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.
We are working on some code that programmatically creates menus for our site. We use Menu Block to display our menus. I'd like to have the system automatically add a menu_block at this time too. At this time I'm not finding a function that can handle adding a menu block without using the menu block add form. Am I missing something and/or is there any reason a menu_block_add_block function shouldn't be created?
I'm going to start on a patch as it makes sense to put it in this module, but wanted to post my intentions incase this had already been tried and I missed it.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#1 | add_menu_block_function-169326.patch | 3.34 KB | ejustice |
Comments
Comment #1
ejustice CreditAttribution: ejustice commentedAttached is my first stab at it.