You are here

function features_get_feature_components in Features 7.2

Same name and namespace in other branches
  1. 7 features.module \features_get_feature_components()

Returns components that are offered as an option on feature creation.

Return value

array[] Components from hook_features_api() where 'features_source' is TRUE. Format: $[$component] = $component_info

1 call to features_get_feature_components()
_drush_features_component_list in ./features.drush.inc
Returns all component item labels, grouped by component type.

File

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

Code

function features_get_feature_components() {
  return array_intersect_key(features_get_components(), array_filter(features_get_components(NULL, 'feature_source')));
}