Closed (outdated)
Project:
Quick Tabs
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 19:59 UTC
Updated:
22 Dec 2024 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
avr commentedI'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).
Comment #2
RobKoberg commentedThis 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
Comment #3
alcroito commentedAttaching 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.
Comment #4
heddnHere'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.
Comment #5
heddnbump
Comment #6
heddnApplying yet again on a commons sites. Can we get a review and commit here?
Comment #7
heddnBump. This is just adding a drupal_alter into the code.
Comment #8
shaneonabike commentedI 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.
Comment #9
smustgrave commentedWith 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