You are here

function theme_authcache_comment_view in Authenticated User Page Caching (Authcache) 6

Overridden to handle $links

See also

comment.module

1 string reference to 'theme_authcache_comment_view'
authcache_theme_registry_alter in ./authcache.module
Implements hook_theme_registry_alter().

File

./authcache.module, line 658
Authenticated User Page Caching (and anonymous users, too!)

Code

function theme_authcache_comment_view($comment, $node, $links = array(), $visible = TRUE) {
  global $user, $is_page_authcache;
  if ($user->uid && $is_page_authcache && isset($links['comment_edit'])) {
    unset($links['comment_edit']);
  }
  return theme_comment_view($comment, $node, $links, $visible);
}