You are here

function _comment_resource_count_all in Services 6.3

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

Returns the number of comments on a given node id.

Parameters

$nid: Unique identifier for the specified node.

Return value

Number of comments that node has.

1 string reference to '_comment_resource_count_all'
_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 354
Will define the comments resource for dealing with node comments

Code

function _comment_resource_count_all($nid) {
  return comment_num_all($nid);
}