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) {
// Get static variable that we can access across this request.
$from_activestore =& drupal_static('configuration_from_activestore');
$component = 'taxonomy';
if (file_exists("config://configuration.taxonomy.inc")) {
// Load the current configuration file on disk
include_once drupal_realpath("config://configuration.taxonomy.inc");
// Export just the field we're tracking.
module_load_include('inc', 'configuration', 'configuration.export');
// Export the field we just saved and evaluate the export to $fields
$code = taxonomy_configuration_export_render('configuration', array(
$identifier,
));
eval('$vocab = ' . substr(array_pop($code), 8));
$vocab_code = configuration_taxonomy_default_vocabularies();
// If the activestore doesn't exist it is most likely because this configuration
// only exists in code.
if (empty($vocab)) {
configuration_set_status($component, $identifier, CONFIGURATION_TRACKED_DATASTORE_ONLY);
}
configuration_update_component_status($component, $identifier, $vocab, $vocab_code, $from_activestore);
}
}