Give the gift of Drupal. All merchandise is 50% off through 2016.
While an entity type's form controller class might be the primary form by which to edit an entity, it should be possible to create additional forms: for example, an in-place editing form, as in. Also, entities can be edited outside of forms entirely, via RESTful web services, as in .
What is currently done by hook_node_prepare() and friends has nothing to do with forms: it's just about doing further manipulation of $node that wasn't done in node_load() for various reasons (performance, idempotence).
So, this patch moves it to the entity class itself.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entity_prepare_0.patch. Unable to apply patch. See the log in the details link for more information. View
FAILED: [[SimpleTest]]: [MySQL] 48,741 pass(es), 453 fail(s), and 174 exception(s). View