Download & Extend

Use preprocess instead of variables to remove tabs

Project:Local tasks blocks
Version:7.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:lotyrin
Status:active

Issue Summary

I am using the "Local tasks: primary" block to list all the primary links on a page.
I am assuming that the top level local tabs are referred to as the primary links. if I am wrong, please correct me.

I am using the context module to place the block.
I have the ginkgo theme based on tao installed.
I checked the box for "Remove local tasks from the theme's tabs when this block is displayed?"
The primary local tabs are not removed.

Comments

#1

Title:Primary menus are not removed» Local tasks replaced by primary menus are not removed

#2

Status:active» postponed

Ginkgo is based on the Tao theme, which adds custom versions of the tabs and tabs2 variables to the page template.

These variables are added after the local tasks blocks' preprocess hooks run, so it's too late for the module to change the variables (without adding preprocess hooks via hook_theme_registry_alter).
That's something I'll look into for a later release - for now, these themes aren't supported.

#3

Title:Local tasks replaced by primary menus are not removed» Use preprocess instead of variables to remove tabs
Version:6.x-1.x-dev» 7.x-1.x-dev
Category:bug report» task
Assigned to:Anonymous» lotyrin
Status:postponed» active
nobody click here