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.
Problem/Motivation
With this module activated the menu item level settings for the Menu Minipanels module disappeared. Other modules might be affected as well.
Proposed resolution
_menu_attributes_form_alter starts out with assigning an array to $form['options']; If the new options are merged with the existing $form['options'] array, previously added fields won't be cleared out. This could be done either by something like array_merge(); or just individually assigning the values like so:
$form['options']['#tree'] = true;
$form['options']['#weight'] = 50;
Remaining tasks
There might have been a reason beyond simplicity why it was done this way, so that should be addressed.
Comments
Comment #1
joelpittetSorry this is really old but it looks like we are doing what's in the proposed resolution. So I'll mark as fixed unless there is more clarification or a patch that would help clarify the resolution.