In this recipe, we will be adding a variable to be made available in all node template files. For this example, the new variable will contain a disclaimer that we will be displaying at the bottom of all nodes.
We will be using the myzen theme created earlier in this book as the example theme in this recipe. It is also assumed that a
node.tpl.php file exists in myzen's templates folder as per recipes in earlier chapters. If not, this file will need to be imported from the Zen base theme or a new one will need to be created.
A new variable can be made available to node template files by introducing it via the appropriate preprocess function as follows: