From c7b58a1e630ecc124910176412e88326f8fb4fd0 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Tue, 19 Mar 2002 19:33:42 +0000 Subject: - page node's can now be promoted to the front page and the abstract will show instead of the whole content. --- modules/page/page.module | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'modules/page/page.module') diff --git a/modules/page/page.module b/modules/page/page.module index 34d4d063c..efe2820e7 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -105,20 +105,25 @@ function page_body($node) { function page_view($node, $main = 0) { global $theme; - /* - ** Extract the page body. If body is dynamic (using PHP code), the body - ** will be generated. - */ - - $output .= page_body($node); - - /* - ** Add the node specific links: - */ - - $output .= "
". $theme->links(link_node($node, $main)) ."
"; - - $theme->box($node->title, $output); + if ($main) { + $theme->node($node, $main); + } + else { + /* + ** Extract the page body. If body is dynamic (using PHP code), the body + ** will be generated. + */ + + $output .= page_body($node); + + /* + ** Add the node specific links: + */ + + $output .= "
". $theme->links(link_node($node, $main)) ."
"; + + $theme->box($node->title, $output); + } } function page_form(&$node, &$help, &$error) { -- cgit v1.2.3