function configuration_load_includes in Configuration Management 6
Load all include files including the module configuration component files supplied by the configuration framework
1 call to configuration_load_includes()
- configuration_run_pass in ./
configuration.module - Run through a pass of the configuration process
File
- ./
configuration.module, line 2093 - 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_load_includes() {
// The module files
configuration_load_module_configurations();
// Find any includes set on the context object and include them
$context =& configuration_get_data('context');
// Get all contexts with an include attribute to make sure they are included
if (is_object($context)) {
$matches = configuration_fetch('//@include', $context);
foreach ($matches as &$match) {
if (!file_exists($match->item)) {
configuration_set_error('missing include', array(
'!file' => $match->item,
));
break;
}
else {
@(require_once $match->item);
}
}
}
}