You are here

function comment_service_load in Services 6.2

Same name and namespace in other branches
  1. 7 services/comment_service/comment_service.inc \comment_service_load()

Returns a specified comment

Parameters

$cid: Unique identifier for the specified comment

Return value

The comment object

1 string reference to 'comment_service_load'
comment_service_service in services/comment_service/comment_service.module
Implementation of hook_service().

File

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

Code

function comment_service_load($cid) {
  $cid = db_result(db_query("SELECT cid FROM {comments} WHERE cid = %d", $cid));
  return _comment_load($cid);
}