The $pane variable is not exists in ctools_content_get_defaults()

#1 ctools-2036291.patch439 bytesSweetchuck
Members fund testing for the Drupal project. Drupal Association Learn more


Sweetchuck’s picture

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'];