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.
in function quicktabs_export_form()
// Generate export code
$code = '$items = array();' ."\n";
$code .= ctools_export_object('quicktabs', $qt, '');
$code .= '$items["'. $qt->machine_name .'"] = $quicktabs;' ."\n";
$code .= 'return $items;';
should be just:
// Generate export code
$code = ctools_export_object('quicktabs', $qt, '');
Why:
- views module does the same, it only makes the export code of 1 view, not an array of views.
- array of quicktabs can be generated with ctools bulk_export
Comment | File | Size | Author |
---|---|---|---|
#3 | remove_the_items_array_from_export-1379034-3.patch | 951 bytes | barbi |
Comments
Comment #1
Pasqualle.
Comment #2
barbi CreditAttribution: barbi commentedComment #3
barbi CreditAttribution: barbi commentedComment #4
valthebaldComment #5
ultimateboy CreditAttribution: ultimateboy commentedThanks. Committed to 7.x-3.x