You are here

function comment_service_load in Services 7

Same name and namespace in other branches
  1. 6.2 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 82
@author Services Dev Team

Code

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