You are here

function features_get_deprecated in Features 7.2

Returns an array of deprecated components.

Rather than deprecating the component directly, we look for other components that supersedes the component.

Parameters

array[] $components: (optional) An array of components. Format: $[$component] = $component_info.

Return value

string[] Format: $[$deprecated_component_name] = $deprecated_component_name

4 calls to features_get_deprecated()
features_export_build_form_submit in ./features.admin.inc
First submit handler 'Generate feature' and 'Download feature' buttons.
features_export_prepare in ./features.export.inc
Prepares a feature export array into a finalized info array.
features_export_render in ./features.export.inc
Render feature export into an array representing its files.
_features_export_form_components in ./features.admin.inc
Adds form elements for component selection on the export form.

File

./features.module, line 1428
Main *.module file for the 'features' module.

Code

function features_get_deprecated($components = array()) {
  if (empty($components)) {
    $components = features_get_components();
  }
  $deprecated = array();
  foreach ($components as $component => $component_info) {
    if (!empty($component_info['supersedes'])) {
      $deprecated[$component_info['supersedes']] = $component_info['supersedes'];
    }
  }
  return $deprecated;
}