From eee72bfa9509e99be79f9c92e6330bc00ea498dd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Jan 2004 19:25:37 +0000 Subject: - Patch 4859: new drupal_unpack() consolidates duplicate code and makes it easy to show avatars next to nodes and comments. Patch by Moshe. As a showcase, maybe Xtemplate should have an option to enable/disable avatars? --- modules/node.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 770661cc1..7f1b2a532 100644 --- a/modules/node.module +++ b/modules/node.module @@ -263,10 +263,11 @@ function node_load($conditions, $revision = -1) { ** Retrieve the node: */ - $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE ". implode(" AND ", $cond))); + $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE ". implode(" AND ", $cond))); + $node = drupal_unpack($node); /* - ** Unserialize the revisions field: + ** Unserialize the revisions and user data fields: */ if ($node->revisions) { -- cgit v1.2.3