There is a similar issue for D6: 1250594.

I would like to change the renderer itself for a Quick Tabs instance coming from code. There doesn't seem to be a way to alter this before quickset_renderer_factory is called in quicktabs_build_quicktabs.

Comments

avr’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new2.73 KB

I'm not sure if this patch breaks other options - or if this is the best way to implement it.

(Also, there are a few code cleanup items with spacing/line endings).

RobKoberg’s picture

This patch would be more useful if the $tabs where included in the alter. My use case is to remove some before displaying to certain roles.

There is a more in depth discussion in commons at: https://drupal.org/node/2003006#comment-7655635

alcroito’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Priority: Normal » Major
Issue summary: View changes
StatusFileSize
new1.44 KB

Attaching a patch that creates a similar $info object (with some differences) when a quicktab is a custom one (not ctools provided), and calls the drupal_alter hook on the object, allowing to change the custom tabs and settings of a custom quicktab.

heddn’s picture

StatusFileSize
new1.5 KB
new1.35 KB

Here's a slightly different approach that keeps the same format inside the drupal_alter. Alternatively, we could build a separate alter hook that is specifically for custom tabs. But this approach follows the same spirit as quicktabs_build_quicktabs(), so I'm opting to use an optional value passed to the drupal_alter.

heddn’s picture

bump

heddn’s picture

Applying yet again on a commons sites. Can we get a review and commit here?

heddn’s picture

Bump. This is just adding a drupal_alter into the code.

shaneonabike’s picture

I can confirm that this patch works AND it's worth noting that without this patch when you have a custom QuickTabs setup it never calls hook_alter which is frustrating and unclear.

smustgrave’s picture

Status: Needs review » Closed (outdated)

With D7 EOL approaching in a month I'm starting to triage the D7 side of quicktabs queue.

If still an issue or needed for 4.0.x (latest branch) feel free to reopen