function configuration_populate_sanitize in Configuration Management 7
Conform the $config array to something that configuration_populate() can use.
4 calls to configuration_populate_sanitize()
- configuration_delete_multiple in ./
configuration.module - Delete a specific configuration from being tracked.
- configuration_download_config in ./
configuration.admin.inc - Download the entire configuration packaged up into zip file
- configuration_download_diff in ./
configuration.admin.inc - Download a unified diff.
- configuration_write_exports in ./
configuration.export.inc - Writes configurations to disk.
File
- ./
configuration.module, line 748 - Module file for the configuration module, which enables the capture and management of configuration in Drupal.
Code
function configuration_populate_sanitize($config) {
$sanitized = array();
foreach ($config as $component => $value) {
if (is_array($value)) {
foreach ($value as $name => $settings) {
$sanitized[$component][$name] = $name;
}
}
}
return $sanitized;
}