The $pane variable is not exists in ctools_content_get_defaults()

Files: 
CommentFileSizeAuthor
#1 ctools-2036291.patch439 bytesSweetchuck

Comments

Sweetchuck’s picture

FileSize
439 bytes

Simple patch.

Sweetchuck’s picture

I think it would be better to pass the $plugin and $subtype as well, because the origin of $defaults is untraceable in the callback function.
Like this:

if ($return = $defaults($plugin, $subtype)) {
  return $return;
}

And I don't know why the $plugin is stronger than the $subtype

if (isset($plugin['defaults'])) {
  $defaults = $plugin['defaults'];
}
else if (isset($subtype['defaults'])) {
  $defaults = $subtype['defaults'];
}