summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index bdc4b30d6..cff8e636d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1,6 +1,15 @@
<?php
-$module = array("admin" => "node_admin");
+class Node {
+ function Node($node) {
+ global $user;
+ $this->userid = $node[userid] ? $node[userid] : $user->userid;
+ $this->title = $node[title];
+ $this->timestamp = $node[timestamp] ? $node[timestamp] : time();
+ $this->cid = $node[cid];
+ $this->tid = $node[tid];
+ }
+}
function node_overview($query = array()) {
global $user;