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.
when including a set of tabs in another set of tabs via the "QTabs" type, the render method of QuickQtabsContent does not call drupal_alter like the regular tab build sequence does.
This means that any customizations done through hook_quicktabs_alter do not work as expected.
A simple fix could be merely calling the alter on line 49 of plugins/QuickQtabsContent.inc:
drupal_alter('quicktabs', $quicktabs);
in context:
$output = array();
if (isset($item['machine_name'])) {
if ($quicktabs = quicktabs_load($item['machine_name'])) {
drupal_alter('quicktabs', $quicktabs);
$contents = $quicktabs->tabs;
$name = $quicktabs->machine_name;
unset($quicktabs->tabs, $quicktabs->machine_name);
$options = (array) $quicktabs;
if ($qt = QuickSet::QuickSetRendererFactory($name, $contents, $quicktabs->renderer, $options)) {
$output = $qt->render();
}
}
}
Comment | File | Size | Author |
---|---|---|---|
#1 | alter-subtabs-2190693-2.patch | 562 bytes | iamfredrik |
Comments
Comment #1
iamfredrik CreditAttribution: iamfredrik commentedMade a patch for this.