Skip to content
Snippets Groups Projects
Commit 804d38bf authored by albe's avatar albe Committed by Wolfgang Ziegler // fago
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment