You are here

function comment_service_node_comments_count_all in Services 6.2

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

File

services/comment_service/comment_service.inc, line 98
Link commenting functionality to services module.

Code

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