You are here

function _authcache_comment_num_new in Authenticated User Page Caching (Authcache) 7

Display number of new comments on node-teaser

File

ajax/authcache.php, line 151
Authcache Ajax Callback (authcache.php)

Code

function _authcache_comment_num_new($nids) {
  include_once './modules/node/node.module';
  include_once './modules/comment/comment.module';
  $counts = array_map('comment_num_new', $nids);
  return array_combine($nids, $counts);
}