Selwyn's Drupal tips

Load a node and display it's contents

This code, thanks to Nick Lewis shows how to load a node using it's nodeid and then display the body, then the title.

Coupon expiration date

I recently did a little project to display a coupon with an expiration date that was calculated. It just adds 21 days to today's date and prints it on the coupon. Here is what the code looks like: