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.
I propose to change
'type' => MENU_LOCAL_ACTION, (clone.module at line 50)
to
'type' => MENU_LOCAL_TASK,
as it is more handy to have "Clone" as a task tab.
Otherwise a setting letting you switch between these options could be handy.
Comment | File | Size | Author |
---|---|---|---|
#11 | 1252702-menu-local-task.patch | 390 bytes | Dave Reid |
#3 | menu_local_task-1252702-3.patch | 331 bytes | bneil |
Comments
Comment #1
zepner CreditAttribution: zepner commentedagreed, did the same.
is there an actual purpose for keeping it in the action_links?
Comment #2
CarbonPig CreditAttribution: CarbonPig commentedsubscribe - I did the same thing - tab is more useful and doesn't clutter up a panel. Tab can also be hidden/renamed using Tab Tamer module if needed.
Comment #3
bneil CreditAttribution: bneil commentedQuick patch that changes MENU_LOCAL_ACTION to MENU_LOCAL_TASK.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedI think action is more correct though. Anyway, needs committer feedback.
Comment #5
GiorgosKmodule maintainer has already answered that he won't fix it if you read #16 in #1054834: Clone tab
how about if there is a configuration choice ?
or how would we integrate into contextual links ?
Comment #6
RobLoachHow about we move the discussion over here: #1328682: Add a link to the contextual menu / or a tab for cloning the node
Definitely an improved UI is important.
Comment #7
attheshow CreditAttribution: attheshow commented@neuronick - Thanks for posting about the MENU_LOCAL_TASK fix. This helped me get it configured the way I wanted it.
Comment #8
jnettikI would second the link being in the tabs.
Comment #9
HitbyPatch in #3 works well. Looks much tidier. Thanks,
Comment #10
sirtet+1 for a setting for the link-type's tab|action|contextual
In the meantime, for people who are not comfortable with patches, there's a module for that: https://drupal.org/project/node_clone_tab
Comment #11
Dave ReidRe-rolled patch against RC2. So confusing why this is a local action.
Comment #12
sirtetI'd love to see this in, but it's aparently very controversal, see https://www.drupal.org/node/1328682
Maybe this issue should be closed as duplicate (and the other one reopened)?