You are here

function _comment_resource_count_all in Services 7.3

Same name and namespace in other branches
  1. 6.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

resources/comment_resource.inc, line 362

Code

function _comment_resource_count_all($nid) {
  $node = node_load($nid);
  return $node->comment_count;
}