summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/node.module b/modules/node.module
index 74160311d..428f3c4ba 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -3,6 +3,10 @@
class Node {
function Node($node) {
global $user;
+ $this->uid = $node[uid] ? $node[uid] : $user->uid;
+ $this->nid = $node[nid];
+ $this->type = $node[type];
+ $this->comment = $node[comment] ? $node[comment] :
$this->name = $node[name] ? $node[name] : $user->name;
$this->title = $node[title];
$this->attributes = $node[attributes];