You are here

function comment_delete_comment_view in Comment Delete 7

Implements hook_comment_view().

File

./comment_delete.module, line 70
comment_delete.module

Code

function comment_delete_comment_view($comment, $view_mode, $langcode) {
  if (comment_delete_check_access($comment->cid)) {
    $comment->content['links']['comment']['#links']['comment-delete'] = array(
      'title' => t('delete'),
      'href' => 'comment/' . $comment->cid . '/delete',
      'html' => TRUE,
    );
  }
}