function _drush_features_component_print in Features 7
Same name and namespace in other branches
- 8.4 drush/features.drush8.inc \_drush_features_component_print()
- 8.3 drush/features.drush8.inc \_drush_features_component_print()
- 7.2 features.drush.inc \_drush_features_component_print()
Prints a list of filtered components.
1 call to _drush_features_component_print()
- drush_features_components in ./
features.drush.inc - List components, with pattern matching.
File
- ./
features.drush.inc, line 385 - Features module drush integration.
Code
function _drush_features_component_print($filtered_components) {
$rows = array(
array(
dt('Available sources'),
),
);
foreach ($filtered_components['components'] as $source => $components) {
foreach ($components as $name => $value) {
$row = array(
$source . ':' . $name,
);
if (isset($filtered_components['sources'][$source . ':' . $name])) {
$row[] = dt('Provided by') . ': ' . $filtered_components['sources'][$source . ':' . $name];
}
$rows[] = $row;
}
}
drush_print_table($rows, TRUE);
}