Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c98fd96c
Commit
c98fd96c
authored
Aug 23, 2009
by
webchick
Browse files
#367595
follow-up by plach: Fix missing call to field_attach_preprocess().
parent
fc20d6e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
c98fd96c
...
...
@@ -1271,6 +1271,9 @@ function template_preprocess_node(&$variables) {
// Flatten the node object's member fields.
$variables
=
array_merge
((
array
)
$node
,
$variables
);
// Make the field variables available with the appropriate language.
field_attach_preprocess
(
'node'
,
$node
,
$node
->
content
,
$variables
);
// Display post information only on certain node types.
if
(
variable_get
(
'node_submitted_'
.
$node
->
type
,
TRUE
))
{
$variables
[
'submitted'
]
=
theme
(
'node_submitted'
,
$node
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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