summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-05 13:41:04 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-05 13:41:04 +0000
commit72df65d1e009137b57132739de68936c9395dca6 (patch)
tree460cc16ef0b8d2efd27be113f819a134cac93eb6 /modules/node/node.module
parentd058394cf373ca3529ff169db148478fa30aa414 (diff)
downloadbrdo-72df65d1e009137b57132739de68936c9395dca6.tar.gz
brdo-72df65d1e009137b57132739de68936c9395dca6.tar.bz2
- Patch #731426 by fago: recursed entity loading didn't work.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 3 insertions, 2 deletions
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);
}
}