You are here

function configuration_populate in Configuration Management 7

Parameters

$items:

$module_name:

4 calls to configuration_populate()
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.export.inc, line 8

Code

function configuration_populate($items, $dependencies) {

  // Sanitize items.
  $items = array_filter($items);
  $items['dependencies'] = drupal_map_assoc(array_filter($dependencies));

  // Populate stub
  $stub = array(
    'configuration' => array(),
    'dependencies' => array(),
    'conflicts' => array(),
  );
  $export = _configuration_populate($items, $stub);

  // Allow other modules to alter the export.
  drupal_alter('configuration_export', $export);

  // Clean up and standardize order
  foreach (array_keys($export['configuration']) as $k) {
    ksort($export['configuration'][$k]);
  }
  ksort($export['configuration']);
  ksort($export['dependencies']);
  return $export;
}