From 1ecffc35cdbcd6c5bacc56b8b3085b7fb7762457 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 May 2010 13:27:31 +0000 Subject: - Patch #566940 by catch: move node specific code out of entity.inc. --- includes/entity.inc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'includes') diff --git a/includes/entity.inc b/includes/entity.inc index 4b6058b75..59dfc5bff 100644 --- a/includes/entity.inc +++ b/includes/entity.inc @@ -188,14 +188,6 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface { // The id field is provided by entity, so remove it. unset($entity_revision_fields[$this->idKey]); - // Change timestamp to revision_timestamp, and revision uid to - // revision_uid before adding them to the query. - // TODO: This is node specific and has to be moved into NodeController. - unset($entity_revision_fields['timestamp']); - $query->addField('revision', 'timestamp', 'revision_timestamp'); - unset($entity_revision_fields['uid']); - $query->addField('revision', 'uid', 'revision_uid'); - // Remove all fields from the base table that are also fields by the same // name in the revision table. $entity_field_keys = array_flip($entity_fields); -- cgit v1.2.3