You are here

function hook_features_pre_restore in Features 7.2

Module hook. Invoked before a restore operation is run.

This hook is called before any of the restore operations on the components is run.

Parameters

string $op: The operation that is triggered: revert, rebuild, disable, enable.

array $items: The items handled by the operation.

1 invocation of hook_features_pre_restore()
_features_restore in ./features.module
Restore the specified modules to the default state.

File

./features.api.php, line 308
Hooks provided by the features module.

Code

function hook_features_pre_restore($op, $items) {
  if ($op == 'rebuild') {

    // Use features rebuild to rebuild the features independent exports too.
    entity_defaults_rebuild();
  }
}