function authcache_preprocess_comment in Authenticated User Page Caching (Authcache) 7
Same name and namespace in other branches
- 6 authcache.module \authcache_preprocess_comment()
Process comment template variables
Replace "new" marker with empty span containing timestamp info Add "edit" uid span for JS phase
See also
File
- ./
authcache.module, line 625 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_preprocess_comment(&$variables) {
// Will use Ajax to determine whether to display "new" marker for user
if ($variables['authcache_is_cacheable'] === true) {
$variables['new'] = '<span class="authcache-comment-new" data-timestamp="' . $variables['comment']->changed . '"></span>';
}
}