function hook_features_post_restore in Features 7.2
Module hook. Invoked after a restore operation is run.
This hook is called after 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_post_restore()
- _features_restore in ./
features.module - Restore the specified modules to the default state.
File
- ./
features.api.php, line 326 - Hooks provided by the features module.
Code
function hook_features_post_restore($op, $items) {
if ($op == 'rebuild') {
// Use features rebuild to rebuild the features independent exports too.
entity_defaults_rebuild();
}
}