You are here

function _configuration_get_not_tracked in Configuration Management 7.2

List of all components that are not tracked.

1 string reference to '_configuration_get_not_tracked'
configuration_drush_command in ./configuration.drush.inc
Implements of hook_drush_command().

File

./configuration.drush.inc, line 238
configuration.drush.inc Let you perform configuration actions from the console.

Code

function _configuration_get_not_tracked() {
  $header = array();
  $header[] = array(
    'Component::Machine Name',
    'Identifier',
  );
  $not_tracked = ConfigurationManagement::nonTrackedConfigurations();
  if (empty($not_tracked)) {
    return drush_print('All components have been tracked');
  }
  foreach ($not_tracked as $component => $list) {
    foreach ($list as $identifier) {
      $content[] = array(
        'component' => $component,
        'identifier' => $identifier['name'],
      );
    }
  }
  $table = array_merge($header, $content);
  drush_print_table($table, TRUE);
}