Hi
I d like to be able to move the local task to the admin menu only for certain themes, normally when using an admin theme (Seven for example) I d like to have them where they are supposed to be, but remove them on a normal front end theme.
tx

Simone

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sirtet’s picture

+1,
I am looking for the same feature, same reason...

sirtet’s picture

It's not exactly what the title requests,
But this patch allows to not move the local tasks on admin pages.

I was looking for how to make the new checkbox appear as in the hierarchy of the other, with indent.
but i did not find a good howto.
also it could depend on the first, did not try that yet.

sirtet’s picture

Status: Active » Needs review
sirtet’s picture

ok, with

    '#states' => array(
      'enabled' => array(
        ':checkbox[name="admin_menu_tweak_tabs"]' => array('checked' => TRUE),
      ),
    ),

i can get the functional dependency, but how to indent this checkbox to better show the dependency visually?

Views does this via ctools #dependent, eg. on childs of the checkbox "Create a label".

sirtet’s picture

Ok, i used #prefix/#suffix to get the indent.
I was surprised i did not find a generic, easy way to get a semantic AND visual hierarchy. I did not get my head around all the #container, #parent, #child, #tree options.

But i think it's usable this way.

sirtet’s picture

Status: Needs review » Active
sirtet’s picture

Status: Active » Needs review
Chris Gillis’s picture

Any update since January?

sirtet’s picture

The patch works and has passed,
someone needs to review...

vaccinemedia’s picture

Applied cleanly and works a treat for me even when using the adminimal menu on top.

cosolom’s picture

I think it's time to include it in the next release) Year is more than enough to test

vaccinemedia’s picture

Status: Needs review » Reviewed & tested by the community
truls1502’s picture

Status: Reviewed & tested by the community » Needs review

Let's set the status to NR so people look at this.

cosolom’s picture

I think that people already looked at this during last 5 years. maybe 2 more years and this patch will be commited.

Chris Matthews’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #5 still applies cleanly to 7.x-3.x-dev, great improvement, changing status to RTBC in hopes this is committed before the next release, be it -rc7 or 7.x-3.0.

  • truls1502 committed 65cca28 on 7.x-3.x
    Issue #2001104 by sirtet, truls1502: Move local task on menu per theme
    
truls1502’s picture

Status: Reviewed & tested by the community » Fixed

I have also corrected the patch regarding Drupal Coding Standards.

Status: Fixed » Closed (fixed)

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