From f5be5fdfa406db65aaf8c64050b7ed1971a44ec6 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Fri, 23 Nov 2001 17:10:46 +0000 Subject: - modified node_save so that revisions are not validated using check_input, as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax. --- modules/node/node.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 0a587fe50..f2ab82bbc 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -88,7 +88,6 @@ function node_filter_link($text) { } function node_filter_line($text) { - /* ** If HTML mark-up is being used, strip regular mark-up: */ @@ -129,7 +128,7 @@ function node_filter($text) { return node_filter_line($text); } -function node_link($type, $node = 0) { +function node_link($type, $node = 0, $main = 0) { if ($type == "admin" && user_access("administer nodes")) { $links[] = "content management"; @@ -140,12 +139,11 @@ function node_link($type, $node = 0) { } if ($type == "node") { - if ($node->links) { $links = $node->links; } - if ($node->teaser != $node->body) { + if ($node->teaser != $node->body && $main) { $links[] = "nid ."\">". t("read more") .""; } -- cgit v1.2.3