Closed (outdated)
Project:
Quick Tabs
Version:
7.x-3.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2012 at 16:18 UTC
Updated:
11 Dec 2024 at 20:27 UTC
Jump to comment: Most recent
This problem happens when I programmatically create a quicktabs accordion instance:
$output = drupal_render(quicktabs_build_quicktabs('myName', array('renderer' => 'accordion'), $shortcode_tabs_stack));
The accordion won't render and there will be notices of undefined indexes history and jquery_ui. After looking at the variables that are passed by a stored quicktabs instance I did this:
$settings = array(
'renderer' => 'accordion',
'options' => array (
'history' => 0,
'jquery_ui' => array(
'autoHeight' => 0,
'collapsible' => 0,
),
),
);
$output = drupal_render(quicktabs_build_quicktabs('myName', $settings, $shortcode_tabs_stack));
And the accordions work fine, but it seems redundant to add those empty arrays in my module.
Comments
Comment #1
smustgrave commentedWith D7 EOL approaching in a month I'm starting to triage the D7 side of quicktabs queue. This doesn't appear to have any code so believe this may not make it, sorry! Thanks though!
If still an issue or needed for 4.0.x (latest branch) feel free to reopen