function _configuration_get_tracked in Configuration Management 7.2
1 string reference to '_configuration_get_tracked'
- configuration_drush_command in ./
configuration.drush.inc - Implements of hook_drush_command().
File
- ./
configuration.drush.inc, line 207 - configuration.drush.inc Let you perform configuration actions from the console.
Code
function _configuration_get_tracked() {
$header = array();
$header[] = array(
'Component::Machine Name',
'Identifier',
'Status',
'Hash',
);
//get tracked file
$tracked = ConfigurationManagement::trackedConfigurations(FALSE);
//format the result
foreach ($tracked as $component => $info) {
//check status
$configuration = ConfigurationManagement::createConfigurationInstance($component);
$content[] = array(
'component' => $configuration
->getComponent(),
'identifier' => $configuration
->getIdentifier(),
'status' => $configuration
->getStatus(),
'hash' => $info['hash'],
);
}
if (empty($content)) {
return drush_print('No tracked components');
}
$table = array_merge($header, $content);
drush_print_table($table, TRUE);
}