diff --git a/features.export.inc b/features.export.inc index 154b26b..9535e14 100644 --- a/features.export.inc +++ b/features.export.inc @@ -23,9 +23,21 @@ function features_populate($info, $module_name) { // Clean up and standardize order foreach (array_keys($export['features']) as $k) { ksort($export['features'][$k]); + if (isset($export['features_exclude'][$k]) && + in_array($key, $export['features_exclude'][$k])) { + foreach ($export['features'][$k] as $key) { + unset($export['features'][$k][$key]); + } + } } ksort($export['features']); ksort($export['dependencies']); + if (isset($export['features_exclude']['dependencies']) && + in_array($dep, $export['features_exclude']['dependencies'])) { + foreach (array_keys($export['dependencies']) as $dep) { + unset($export['dependencies'][$dep]); + } + } ksort($export['features_exclude']); return $export;