From b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Jul 2001 12:12:41 +0000 Subject: - 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 --- modules/node/node.module | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 1d3981310..cde5f9d83 100644 --- a/modules/node/node.module +++ b/modules/node/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[] = "content"; } - if ($context[0] && $context[1]) { - $node = $context[1]; + if ($type == "node") { if ($node->body) { $links[] = "nid ."\">". t("read more") .""; } -- cgit v1.2.3