By ingox on
I'm using node_load to get the content of a node displayed in my module.
Now I like to modify the text from the node with some values from variables.
How can I do that?
Any ideas?
I appreciate your help.
Ingo
I'm using node_load to get the content of a node displayed in my module.
Now I like to modify the text from the node with some values from variables.
How can I do that?
Any ideas?
I appreciate your help.
Ingo
Comments
Change $node->body
If you want to modify the (body) text of the node, you need to change the value of the body variable in the node object.
For example:
Hope that helps.