Commit 804d38bf authored by Aleksander Belov's avatar Aleksander Belov Committed by fago

Issue #2448151 by Aleksander Belov, alesr, joelpittet: Speed up feature...

Issue #2448151 by Aleksander Belov, alesr, joelpittet: Speed up feature revertion of entity exportables
parent 79d05838
......@@ -132,9 +132,7 @@ class EntityDefaultFeaturesController {
*/
function revert($module = NULL) {
if ($defaults = features_get_default($this->type, $module)) {
foreach ($defaults as $name => $entity) {
entity_delete($this->type, $name);
}
entity_delete_multiple($this->type, array_keys($defaults));
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment