Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c7b58a1e
Commit
c7b58a1e
authored
Mar 19, 2002
by
Kjartan Mannes
Browse files
- page node's can now be promoted to the front page and the abstract will
show instead of the whole content.
parent
4ec8a932
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/page.module
View file @
c7b58a1e
...
...
@@ -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
)
{
...
...
modules/page/page.module
View file @
c7b58a1e
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment