This hook can be used to alter the paramters used to output comments. For example you can change actual text of comment, filter out etc. One of the usecase is OssnEmbed. https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/v6.x/components/OssnEmbed/ossn_com.php#L26


~~~
<?php
function my_component_init(){
ossn_add_hook('comment:view', 'template:params', 'my_component_hook');
}
function my_component_hook($hook, $type, $return, $params = null){
//$return contains messages instance vars (array).
//$return['comment']['comments:post'] for posts
//$return['comment']['comments:entity'] for entity comment
//$return['comment']['comments:object'] for object comment.
error_log(print_r($return, true));
return $text;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~

Comment template params