function ctools_component_configuration_revert in Configuration Management 7
Master implementation of hook_configuration_revert() for all ctools components.
1 call to ctools_component_configuration_revert()
- context_configuration_revert in includes/configuration.context.inc 
- Implements hook_configuration_revert().
File
- includes/configuration.ctools.inc, line 199 
Code
function ctools_component_configuration_revert($component, $module, $module_name) {
  if ($objects = configuration_get_default($component, $module_name)) {
    foreach ($objects as $name => $object) {
      // Some things (like views) do not use the machine name as key
      // and need to be loaded explicitly in order to be deleted.
      _ctools_configuration_export_crud_save($component, $name, $object);
      configuration_set_status($component, $name, CONFIGURATION_IN_SYNC);
    }
    configuration_write_export_file();
  }
}