I'm using the adaptive theme with the pixture_reloaded subtheme, and I'm trying to place a preprocess to change the format of $date
. This is what I thought should do the trick but haven't had any luck with getting the output I want.
In ./sites/all/themes/adaptivetheme/adaptivetheme_subtheme/template.php, I've entered the following:
function adaptivetheme_subtheme_preprocess_node (&$vars)
{
$vars['date'] = format_date($node->changed);
}
In ./sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php, I've added:
print $date;
under the location where the main content is rendered.
The date prints where I want it to, however, the date format is still showing up as the date which the content was created, and not the updated date. I've edited the content multiple times as well.
Is my preprocess hook supposed to be placed into a different area to make this work?
Any help is much appreciated.