Exported objects added to non-existant array

DamienMcKenna - November 6, 2009 - 21:32
Project:Chaos tool suite
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Any time an object is exported using the BulkExporter it is added to an array that doesn't exist, e.g.:

<?php
<?php
// $Id: $

/**
* @file
* Bulk export of panels_default objects generated by Bulk export module.
*/

/**
* Implementation of hook_default_panels_mini()
*/
function mymodule_default_panels_mini() {
 
$mini = new stdClass;
 
$mini->name = 'thingy';
// ... definition ...
 
$mini->display = $display;
 
$minis['thingy'] = $mini;

return
$minis;
}
?>

As you can see above the $mini object is added to the $minis array, but $minis was never defined.

Also, there's only one space before the 'return' command.

#1

DamienMcKenna - November 6, 2009 - 21:33
Status:active» needs review

Here's a quick patch to resolve these two issues.

AttachmentSize
ctools-n625696.patch 1.1 KB
 
 

Drupal is a registered trademark of Dries Buytaert.