This passage is not helpful at all:
Nodes are now prepared for display by assembling a structured array in $node->content, rather than directly manipulating $node->body and $node->teaser. The format of this array is the same used by FormAPI.
- Users need to know what replaces $node->body and $node->teaser. I recommend adding an explanation of exactly how to manipulate the body and teaser, something like this:
- Instead of modifying $node->body or $node->teaser, you now modify $node->content['body']['#value'].
Comments
Comment #1
pwolanin commentedThat's not really right- depends what you mean by modifying. If you want to add more content, you sould add more array aelements, like $node->content['mymodule']['#value'] = "
Hello world
";
You would only modify $node->content['body']['#value'] if you want to change the content retreived from the DB.
Comment #2
darren ohThanks for the clarification. That's what needs to be in the handbook.
Comment #3
pwolanin commentedupdated this page a bit: http://drupal.org/node/64279#node-view
Comment #4
(not verified) commented