function config_uninstall_default_config

Uninstalls the default configuration of a given extension.

Parameters

string $type: The extension type; e.g., 'module' or 'theme'.

string $name: The name of the module or theme to install default configuration for.

1 call to config_uninstall_default_config()
module_uninstall in drupal/core/includes/module.inc
Uninstalls a given list of modules.

File

drupal/core/includes/config.inc, line 66
This is the API for configuration storage.

Code

function config_uninstall_default_config($type, $name) {
  $storage = drupal_container()
    ->get('config.storage');
  $config_names = $storage
    ->listAll($name . '.');
  foreach ($config_names as $config_name) {
    config($config_name)
      ->delete();
  }

  // If this module defines any ConfigEntity types, then delete the manifest
  // file for each of them.
  foreach (config_get_module_config_entities($name) as $entity_type) {
    config('manifest.' . $entity_info['config_prefix'])
      ->delete();
  }
}