You are here

public function EntityDefaultFeaturesController::revert in Entity API 7

Generates the result for hook_features_revert().

File

./entity.features.inc, line 133
Provides Features integration for entity types using the CRUD API.

Class

EntityDefaultFeaturesController
Default controller handling features integration.

Code

public function revert($module = NULL) {
  if ($defaults = features_get_default($this->type, $module)) {
    entity_delete_multiple($this->type, array_keys($defaults));
  }
}