Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By erikhopp on
Hi.
I'm trying to hack in the node title and body into the email that is sent out with the forward module.
despite including:
$node = node_load($nid);
and
$body .= $node->title;
$body .= $node->body;
into the message nothing is showing up when the email is sent.
Can anyone let me know how to do this?
erik.
Comments
Try $node = node_load(array('nid' => $nid));
You need to change the call to node_load() to
great! that worked. now for the next one....
i am trying to replace the
in the $node->body with a newline in the email.
that just puts a "\n" as text in the email.
any way to put a new line in?
thanks!
erik
http://mediamutiny.org | http://quilted.org
AH HA!!!
this works:
notice the double quotes.
http://mediamutiny.org | http://quilted.org