diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-03-19 19:33:42 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-03-19 19:33:42 +0000 |
commit | c7b58a1e630ecc124910176412e88326f8fb4fd0 (patch) | |
tree | f370bf928828b0f33aa41f9e90ada495cb650515 /modules/page/page.module | |
parent | 4ec8a9323f47c3cabc9e50aca07c334c6497c4ee (diff) | |
download | brdo-c7b58a1e630ecc124910176412e88326f8fb4fd0.tar.gz brdo-c7b58a1e630ecc124910176412e88326f8fb4fd0.tar.bz2 |
- page node's can now be promoted to the front page and the abstract will
show instead of the whole content.
Diffstat (limited to 'modules/page/page.module')
-rw-r--r-- | modules/page/page.module | 33 |
1 files changed, 19 insertions, 14 deletions
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 .= "<div align=\"right\">". $theme->links(link_node($node, $main)) ."</div>"; - - $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 .= "<div align=\"right\">". $theme->links(link_node($node, $main)) ."</div>"; + + $theme->box($node->title, $output); + } } function page_form(&$node, &$help, &$error) { |