You are here

function ctools_component_features_revert in Features 6

Same name and namespace in other branches
  1. 7.2 includes/features.ctools.inc \ctools_component_features_revert()
  2. 7 includes/features.ctools.inc \ctools_component_features_revert()

Master implementation of hook_features_revert() for all ctools components.

1 call to ctools_component_features_revert()
context_features_revert in includes/features.context.inc
Implementation of hook_features_revert().

File

includes/features.ctools.inc, line 187

Code

function ctools_component_features_revert($component, $module) {
  if ($objects = features_get_default($component, $module)) {
    foreach ($objects as $object) {
      _ctools_features_export_crud_delete($component, $object);
    }
  }
}