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

<?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.

CommentFileSizeAuthor
#1 ctools-n625696.patch1.1 KBdamienmckenna

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

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

merlinofchaos’s picture

Status: Needs review » Fixed

I'm not sure it's really necessary to define that array; no notices are thrown when adding specific items to undefined variables. Still it makes sense. Besides the missing two spaces really should be in there.

Committed.

Status: Fixed » Closed (fixed)

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