Hi
I am using Services 6.x-3.1. I want add my own custom data in _comment_resource_retrieve function, but there is no way to add my custom data in that function. Can we have hook implementaion inside _comment_resource_retrieve($cid), then it will be helpfull to append my custom fields.

Example :: OLD
function _comment_resource_retrieve($cid) {
return _comment_load($cid);
}

New ::

function _comment_resource_retrieve($cid) {
$comment_load = _comment_load($cid);
// include hook_comment_services_load() functions to load extra content to comment
module_invoke_all('comment_services', 'load', $comment_load);
return $comment_load;
}

With regards,
Arunkumar

Comments

kylebrowning’s picture

Status: Active » Closed (won't fix)

you can alter the coment resource and do this yourself.

kylebrowning’s picture

Issue summary: View changes

_comment_resource_retrieve