What is the picture field in the node object?
-
16-10-2019 - |
Question
print_r($node)
outputs:
stdClass Object
(
[nid] => 4
[type] => grouptype
[language] => fa
[uid] => 1
....
[title] => sample group
....
[name] => roshd
[picture] =>
....
)
What is picture and how can I upload a picture into this field?
Solution
This is the profile picture of the author of that node. You can upload that in your edit profile form and you can display it using theme('user_picture', $node);
.
If you want to be able to attach images to nodes, have a look at CCK and ImageField..
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange