I have added the #menu_name key per the documentation:
29 * - #menu_name: (optional) Set this to a custom menu if you don't want your
30 * item to be placed in Navigation.

However the menu item is not created.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Title: '#menu_name' => 'main-menu' does not create a menu item on the primary links. » "#menu_name" has no effect
Status: Active » Fixed
FileSize
1.25 KB

Thank you for the report, @nicxvan! I've fixed this in commit 0a3822d. You can apply the attached patch or get it in the next dev build in a few hours. Please give it a try and let me know how it works. I'm thinking of rolling a release candidate soon if there are no other issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.