You are here

function _drush_features_component_list in Features 7

Same name and namespace in other branches
  1. 8.4 drush/features.drush8.inc \_drush_features_component_list()
  2. 8.3 drush/features.drush8.inc \_drush_features_component_list()
  3. 6 features.drush.inc \_drush_features_component_list()
  4. 7.2 features.drush.inc \_drush_features_component_list()

Returns a listing of all known components, indexed by source.

2 calls to _drush_features_component_list()
drush_features_components in ./features.drush.inc
List components, with pattern matching.
drush_features_export in ./features.drush.inc
Add a component to a features module, or create a new module with the selected components.

File

./features.drush.inc, line 227
Features module drush integration.

Code

function _drush_features_component_list() {
  $components = array();
  foreach (features_get_feature_components() as $source => $info) {
    if ($options = features_invoke($source, 'features_export_options')) {
      foreach ($options as $name => $title) {
        $components[$source][$name] = $title;
      }
    }
  }
  return $components;
}