Closed (won't fix)
Project:
Services
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 05:34 UTC
Updated:
4 Nov 2012 at 18:04 UTC
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
Comment #1
kylebrowning commentedyou can alter the coment resource and do this yourself.
Comment #1.0
kylebrowning commented_comment_resource_retrieve