Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Core integration
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2011 at 14:25 UTC
Updated:
21 Sep 2011 at 12:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
fagoAttached patch fixes it for me + improves hook_{ENTITY_TYPE}_delete() to receiver a further parameter, delete. Not sure whether we should do so or better set something like
$entity->is_revert, analogous to $entity->is_rebuild.Comment #2
fagoI've further improved the patch so we don't need an extra parameter in the deletion hook, but can just check whether the entity is in code during deletion. For that to work also in the case of feature-module-disabling I've added an extra check, so that the status is updated before the deletion hook is invoked.
Thus, modules can just rely on the entity-status to figure out when it is a revert or not.
-> Patch remains working + tests are green -> committed.