You are here

function _comment_resource_count_new in Services 6.3

Same name and namespace in other branches
  1. 7.3 resources/comment_resource.inc \_comment_resource_count_new()

Returns the number of new comments on a given node id since timestamp.

Parameters

$nid: Unique identifier for the specified node.

$since: Timestamp to indicate what nodes are new. Defaults to time of last user acces to node.

Return value

Number of comments that node has.

1 string reference to '_comment_resource_count_new'
_comment_resource_definition in resources/comment_resource.inc
@file Will define the comments resource for dealing with node comments

File

resources/comment_resource.inc, line 368
Will define the comments resource for dealing with node comments

Code

function _comment_resource_count_new($nid, $since = 0) {
  return comment_num_new($nid, $since);
}