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.
If a local task menu item has 'context' defined (and set to MENU_CONTEXT_PAGE, MENU_CONTEXT_INLINE, or both), it shows as a contextual item.
This is very useful because a new convention is to create a "Operations" column in admin tables by listing contextual links for a given path.
Commerce does this, and many commerce contribs.
So, would be great to have the option to check "contextual links" checkboxes when creating menu items of type local task.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1128088-local_task-context.patch | 1.73 KB | dawehner |
Comments
Comment #1
dawehnerHere is a patch for it.
Comment #2
dawehnerI'm not sure about the difference of MENU_CONTEXT_PAGE and MENU_CONTEXT_INLINE
Comment #3
dawehnerThis looks quite fine, i guess MENU_CONTEXT_INLINE is the better one, as it seems to be more general.