I just want to echo some words when a certain node comes up.

Currently however it doesn't echo within the content section, but above the header.

How do I get my module to echo the words at the top of the content section?

  • How are you "echoing words" currently? Are you wanting to echo the same words? or different words for each node? Need more description... more details.
    – WernerCD
    Commented Sep 22, 2011 at 23:10

1 Answer 1


If the content is always static then you can look into adding it to a theme template file (by creating a subtheme).

Or you could add some php as part of preprocess_node in template.php to append/prepend the text to the content/body array.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.