You are here

function comment_service_node_comments_count_new in Services 7

Same name and namespace in other branches
  1. 6.2 services/comment_service/comment_service.inc \comment_service_node_comments_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_service_node_comments_count_new'
comment_service_service in services/comment_service/comment_service.module
Implementation of hook_service().

File

services/comment_service/comment_service.inc, line 109
@author Services Dev Team

Code

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