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
bd097f45
Commit
bd097f45
authored
Jan 05, 2007
by
Steven Wittens
Browse files
Revert break tag.
parent
da55db28
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
bd097f45
...
...
@@ -146,7 +146,7 @@ function node_teaser($body, $format = NULL) {
$size
=
variable_get
(
'teaser_length'
,
600
);
// Find where the delimiter is in the body
$delimiter
=
strpos
(
$body
,
'<break>'
);
$delimiter
=
strpos
(
$body
,
'<
!--
break
--
>'
);
// If the size is zero, and there is no delimiter, the entire body is the teaser.
if
(
$size
==
0
&&
$delimiter
===
FALSE
)
{
...
...
@@ -738,7 +738,7 @@ function node_prepare($node, $teaser = FALSE) {
*/
function
node_build_content
(
$node
,
$teaser
=
FALSE
,
$page
=
FALSE
)
{
// Remove the delimiter (if any) that separates the teaser from the body.
$node
->
body
=
str_replace
(
'<break>'
,
''
,
$node
->
body
);
$node
->
body
=
str_replace
(
'<
!--
break
--
>'
,
''
,
$node
->
body
);
// The 'view' hook can be implemented to overwrite the default function
// to display nodes.
...
...
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