You are here

function configuration_trace_context in Configuration Management 6

Helper function to create a list of parent keys given a context item

4 calls to configuration_trace_context()
configuration_build_context in ./configuration.module
Build a context object given a normal php data object
configuration_check_context in ./configuration.module
Check and fix the integrity of the context object in case changes were made to the data
configuration_fetch in ./configuration.module
Find parts of an array based on a semi-compatible xpath syntax.
configuration_fix_context_trace in ./configuration.module
Helper function to update all children trace keys because the parent key changed

File

./configuration.module, line 1722
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_trace_context($obj) {

  // Loop back up through the parents to fill in the trace value.
  $up =& $obj;
  $trace = array();
  while (isset($up->parent)) {
    array_unshift($trace, $up->key);
    $up =& $up->parent;
  }
  return $trace;
}