Commit a2d5bdf2 authored by Mike Potter's avatar Mike Potter
Browse files

Issue #1079440 by mpotter, mrf, tobby, zorp, acrollet, donquixote, hefox,...

Issue #1079440 by mpotter, mrf, tobby, zorp, acrollet, donquixote, hefox, Blackice2999: Fixed Module name check prevents panels custom content panes export.
parent 4de06df4
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -11,6 +11,12 @@ function ctools_features_declare_functions($reset = FALSE) {
      if (!function_exists("{$info['module']}_features_api")) {
        $code .= 'function '. $info['module'] .'_features_api() { return ctools_component_features_api("'. $info['module'] .'"); }';
      }

      // ctools component with owner defined as "ctools"
      if (!function_exists("{$component}_features_api") && $info['module'] === 'ctools') {
        $code .= 'function '. $component .'_features_api() { return ctools_component_features_api("'. $component .'"); }';
      }

      if (!function_exists("{$component}_features_export")) {
        $code .= 'function '. $component .'_features_export($data, &$export, $module_name = "") { return ctools_component_features_export("'. $component .'", $data, $export, $module_name); }';
      }
@@ -110,7 +116,8 @@ function ctools_features_export_render($module, $data) {
function ctools_component_features_api($module_name) {
  $api = array();
  foreach (_ctools_features_get_info() as $component => $info) {
    if ($info['module'] == $module_name) {
    // if module owner is set to "ctools" we need to compare the component
    if ($info['module'] == $module_name || ($info['module'] === 'ctools' && $component == $module_name) ) {
      $api[$component] = $info;
    }
  }
+5 −5

File changed.

Contains only whitespace changes.