getSiteLastEdit

Permalink
Could any one tell me how to call getSiteLastEdit() on the page, so that every one could see when the site was edited? The same would be nice with getTotalPageViews() as a visit counter!

maar
 
defunct replied on at Permalink Reply
defunct
This should work if you put it within a themes' view (eg default.php, full.php etc...):

Loader::model('page_statistics');
echo strftime('%x ' . t('at') . ' %l:%M %p', strtotime(PageStatistics::getSiteLastEdit()));
maar replied on at Permalink Reply
maar
This did it!