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!

CommentFileSizeAuthor
#1 add_menu_block_function-169326.patch3.34 KBejustice
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ejustice’s picture

Status: Active » Needs review
FileSize
3.34 KB

Attached is my first stab at it.