function configuration_check_taxonomy in Configuration Management 7
1 call to configuration_check_taxonomy()
- configuration_taxonomy_vocabulary_update in observers/observer.taxonomy.inc
- Implements hook_taxonomy_vocabulary_update().
File
- includes/configuration.taxonomy.inc, line 108
Code
function configuration_check_taxonomy($identifier) {
$from_activestore =& drupal_static('configuration_from_activestore');
$component = 'taxonomy';
if (file_exists("config://configuration.taxonomy.inc")) {
include_once drupal_realpath("config://configuration.taxonomy.inc");
module_load_include('inc', 'configuration', 'configuration.export');
$code = taxonomy_configuration_export_render('configuration', array(
$identifier,
));
eval('$vocab = ' . substr(array_pop($code), 8));
$vocab_code = configuration_taxonomy_default_vocabularies();
if (empty($vocab)) {
configuration_set_status($component, $identifier, CONFIGURATION_TRACKED_DATASTORE_ONLY);
}
configuration_update_component_status($component, $identifier, $vocab, $vocab_code, $from_activestore);
}
}