Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The comment output template is customized. The output of links for editing, deletion occurs here:
if($user->uid){
echo '<span class="editdelete">';
if(isset($content['links']['comment']['#links']['comment-edit']['href'])){
echo '<a href="/'.$content['links']['comment']['#links']['comment-edit']['href'].'">'.t('Edit').'</a> ';
}
if(accessUser_comment($user,$comment)){
if(isset($content['links']['comment']['#links']['comment-delete']['href'])){
echo '<a href="/'.$content['links']['comment']['#links']['comment-delete']['href'].'">'.t('Delete').'</a> ';
}
}
if(isset($content['links']['comment']['#links']['comment-reply']['href'])){
echo '<a href="/'.$content['links']['comment']['#links']['comment-reply']['href'].'">'.t('Reply').'</a> ';
}
echo '</span>';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question