I've created a custom filter to render Quicktabs within filtered text fields (I can share the code if you feel it would be worth adding to this module).

I'm getting a warning "Notice: Undefined index: settings in QuickQuicktabs->add_attached() (line 121 of /quicktabs/plugins/QuickQuicktabs.inc)" because no other JS settings have been defined at that point.

$javascript = drupal_add_js();
foreach ($javascript['settings']['data'] as $key => $settings) {
  if (key($settings) == 'quicktabs') {
    $qtkey = $key;
    break;
  }
}

I will attach a patch shortly.

Comments

Schoonzie’s picture

Status: Active » Needs review
StatusFileSize
new3.65 KB

Patch attached.

I added the same check to QuickAccordion.inc and QuickUiTabs.inc because I assume they will run into the same issue.

ultimateboy’s picture

Status: Needs review » Fixed

Thanks for this fix as well as the whitespace issues included in the patch!

Committed to 7.x-3.x

http://drupalcode.org/project/quicktabs.git/commit/f8b6611a6ecadab968864...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.