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!

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.