From 72df65d1e009137b57132739de68936c9395dca6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 5 Mar 2010 13:41:04 +0000 Subject: - Patch #731426 by fago: recursed entity loading didn't work. --- modules/node/node.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 3e290f77b..8f50d83d9 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -3586,7 +3586,8 @@ function node_modules_enabled($modules) { * special handling for node objects. */ class NodeController extends DrupalDefaultEntityController { - protected function attachLoad(&$nodes) { + + protected function attachLoad(&$nodes, $revision_id = FALSE) { // Create an array of nodes for each content type and pass this to the // object type specific callback. $typed_nodes = array(); @@ -3602,6 +3603,6 @@ class NodeController extends DrupalDefaultEntityController { } } $this->hookLoadArguments[] = array_keys($typed_nodes); - parent::attachLoad($nodes); + parent::attachLoad($nodes, $revision_id); } } -- cgit v1.2.3