Problem/Motivation

In my project i need to be able to alter the available menus in the node form depending on the context.
In my case i'm using the group module and depending on the active group i need to load a different menu than the one defined on the content type form.

Proposed resolution

Introduce a hook_node_menus_available_menus_alter so developpers can alter the list of available menus on the node edit form.

API changes

Introduce a new hook.

Issue fork node_menus-3622799

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

adel-by created an issue. See original summary.

adel-by’s picture

Status: Active » Needs review
adel-by’s picture

Assigned: adel-by » Unassigned

  • rang501 committed a4e8536e on 3.x authored by adel-by
    feat: #3622799 Introduce new hook hook_node_menus_available_menus_alter
    
rang501’s picture

Status: Needs review » Fixed

Released.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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