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
250d0d02
Commit
250d0d02
authored
Jan 09, 2007
by
Neil Drumm
Browse files
#106607
by anantagati. Add the user picture for node previews.
parent
94f6f95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
250d0d02
...
...
@@ -2154,6 +2154,7 @@ function node_preview($node) {
// user ID 0 denotes the anonymous user.
if
(
$user
=
user_load
(
array
(
'name'
=>
$node
->
name
)))
{
$node
->
uid
=
$user
->
uid
;
$node
->
picture
=
$user
->
picture
;
}
else
{
$node
->
uid
=
0
;
// anonymous user
...
...
@@ -2162,6 +2163,7 @@ function node_preview($node) {
else
if
(
$node
->
uid
)
{
$user
=
user_load
(
array
(
'uid'
=>
$node
->
uid
));
$node
->
name
=
$user
->
name
;
$node
->
picture
=
$user
->
picture
;
}
// Set the timestamps when needed:
...
...
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