From 00a62647bc7af43e15de61cd47801b475be4bd9c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Sep 2003 15:11:41 +0000 Subject: - Committed Nick's _content improvements. --- modules/page.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/page.module') diff --git a/modules/page.module b/modules/page.module index e83cf33c3..842f90e14 100644 --- a/modules/page.module +++ b/modules/page.module @@ -102,7 +102,7 @@ function page_link($type) { return $links; } -function page_view($node, $main = 0) { +function page_content($node) { /* ** Extract the page body. If body is dynamic (using PHP code), the body ** will be generated. @@ -123,6 +123,13 @@ function page_view($node, $main = 0) { return $node; } +function page_view($node, $main) { + // prepair the node content + $node = page_content($node); + // print the node + theme("node", $node, $main); +} + function page_form(&$node, &$help, &$error) { if (function_exists("taxonomy_node_form")) { $output .= implode("", taxonomy_node_form("page", $node)); -- cgit v1.2.3