You are here

function exportAll in Configuration Management 7.3

File

./configuration.module, line 6

Code

function exportAll() {
  $cm = new ConfigurationManager();
  $cm
    ->registerHandlers()
    ->registerEvents();
  $list = array();
  foreach ($cm
    ->getHandlersTypes() as $type) {
    $identifiers = $cm
      ->getHandlerFromType($type)
      ->getIdentifiers();
    foreach ($identifiers as $id => $label) {
      $list[$type . '.' . $id] = TRUE;
    }
  }
  $cm
    ->exporter()
    ->defineItemsToExport($list)
    ->export();
}