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
414c8f8b
Commit
414c8f8b
authored
Nov 05, 2009
by
Dries Buytaert
Browse files
- Patch
#609118
by te-brian, David_Rothstein: Fixed node.tokens.inc: ->body issues.
parent
4c686375
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.tokens.inc
View file @
414c8f8b
...
...
@@ -139,13 +139,13 @@ function node_tokens($type, $tokens, array $data = array(), array $options = arr
case
'body'
:
if
(
!
empty
(
$node
->
body
))
{
$replacements
[
$original
]
=
$sanitize
?
$node
->
body
[
0
][
'safe'
]
:
$node
->
body
[
0
][
'value'
];
$replacements
[
$original
]
=
$sanitize
?
$node
->
body
[
FIELD_LANGUAGE_NONE
][
0
][
'safe'
]
:
$node
->
body
[
FIELD_LANGUAGE_NONE
][
0
][
'value'
];
}
break
;
case
'summary'
:
if
(
!
empty
(
$node
->
body
))
{
$replacements
[
$original
]
=
$sanitize
?
$node
->
body
[
0
][
'safe_summary'
]
:
$node
->
body
[
0
][
'summary'
];
$replacements
[
$original
]
=
$sanitize
?
$node
->
body
[
FIELD_LANGUAGE_NONE
][
0
][
'safe_summary'
]
:
$node
->
body
[
FIELD_LANGUAGE_NONE
][
0
][
'summary'
];
}
break
;
...
...
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