function configuration_check_node in Configuration Management 7
2 calls to configuration_check_node()
- configuration_node_type_update in observers/
observer.node.inc - Implements hook_node_type_update().
- node_configuration_revert in includes/
configuration.node.inc - Implements hook_configuration_revert().
File
- includes/
configuration.node.inc, line 205
Code
function configuration_check_node($identifier) {
// Get static variable that we can access across this request.
$from_activestore =& drupal_static('configuration_from_activestore');
$component = 'node';
if (file_exists("config://configuration.node.inc")) {
// Load the current configuration file on disk
include_once drupal_realpath("config://configuration.node.inc");
if (function_exists('configuration_configuration_node_info')) {
// Clear the node type cache.
node_type_cache_reset();
// 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 = node_configuration_export_render('configuration', array(
$identifier,
));
eval(array_pop($code));
$items_code = configuration_configuration_node_info();
// If the activestore doesn't exist it is most likely because this configuration
// only exists in code.
if (empty($items)) {
configuration_set_status($component, $identifier, CONFIGURATION_TRACKED_DATASTORE_ONLY);
}
configuration_update_component_status($component, $identifier, $items, $items_code, $from_activestore);
}
}
}