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.

CommentFileSizeAuthor
#1 1128088-local_task-context.patch1.73 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
1.73 KB

Here is a patch for it.

dawehner’s picture

I'm not sure about the difference of MENU_CONTEXT_PAGE and MENU_CONTEXT_INLINE

dawehner’s picture

Status: Needs review » Fixed

This looks quite fine, i guess MENU_CONTEXT_INLINE is the better one, as it seems to be more general.

Status: Fixed » Closed (fixed)

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