comment buttons hook

This commit is contained in:
redmatrix 2016-02-04 19:06:11 -08:00
parent 721f61a71d
commit bfeb89075f
2 changed files with 7 additions and 0 deletions

View File

@ -681,6 +681,11 @@ class Item extends BaseObject {
$qc = ((local_channel()) ? get_pconfig(local_channel(),'system','qcomment') : null);
$qcomment = (($qc) ? explode("\n",$qc) : null);
$arr = array('comment_buttons' => '');
call_hooks('comment_buttons',$arr);
$comment_buttons = $arr['comment_buttons'];
$comment_box = replace_macros($template,array(
'$return_path' => '',
'$threaded' => $this->is_threaded(),
@ -689,6 +694,7 @@ class Item extends BaseObject {
'$id' => $this->get_id(),
'$parent' => $this->get_id(),
'$qcomment' => $qcomment,
'$comment_buttons' => $comment_buttons,
'$profile_uid' => $conv->get_profile_owner(),
'$mylink' => $observer['xchan_url'],
'$mytitle' => t('This is you'),

View File

@ -57,6 +57,7 @@
</button>
</div>
{{/if}}
{{$comment_buttons}}
</div>
<div class="btn-group pull-right" id="comment-edit-submit-wrapper-{{$id}}">
{{if $preview}}