You are here

function configuration_fix_context_trace in Configuration Management 6

Helper function to update all children trace keys because the parent key changed

2 calls to configuration_fix_context_trace()
configuration_check_context in ./configuration.module
Check and fix the integrity of the context object in case changes were made to the data
configuration_context_process_property in ./configuration.module
Process a single mapping config property. Various properties will mark static data that will be processed later on in the configuration phases.

File

./configuration.module, line 1738
Provide a unified method for defining site configurations abstracted from their data format. Various data formats should be supported via a plugin architecture such as XML, YAML, JSON, PHP

Code

function configuration_fix_context_trace(&$context) {

  // The start of the check list at the parent
  $list = array(
    &$context,
  );
  while ($check =& $list[0]) {
    array_shift($list);
    $check->trace = configuration_trace_context($check->parent);
    for ($i = 0; isset($check->children[$i]); $i++) {
      $list[count($list)] =& $check->children[$i];
    }
  }
}