diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-07-14 12:12:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-07-14 12:12:41 +0000 |
commit | b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87 (patch) | |
tree | c15103816ada4747acb83bdc3f3e861d25278f48 /modules/node.module | |
parent | e62e3417f7cbdbb1206f20f2f663b606a2b7b12a (diff) | |
download | brdo-b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87.tar.gz brdo-b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87.tar.bz2 |
- theme system:
+ added $theme->images()
- blog.module:
+ improved user-friendliness and rewrote most of the output routines
+ made quoted text /italic/ by default
+ integrated discussion system like it should
+ ...
- marvin.theme:
+ small visual improvements
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module index 1d3981310..cde5f9d83 100644 --- a/modules/node.module +++ b/modules/node.module @@ -69,14 +69,13 @@ function node_cron() { db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_hidden = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time()); } -function node_link($context) { +function node_link($type, $node = 0) { - if ($context == "admin" && user_access("administer nodes")) { + if ($type == "admin" && user_access("administer nodes")) { $links[] = "<a href=\"admin.php?mod=node\">content</a>"; } - if ($context[0] && $context[1]) { - $node = $context[1]; + if ($type == "node") { if ($node->body) { $links[] = "<a href=\"node.php?id=". $node->nid ."\">". t("read more") ."</a>"; } |