function comment_delete_link in Comment Delete 6
Implementation of hook_link().
File
- ./
comment_delete.module, line 192
Code
function comment_delete_link($type, $comment = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'comment' && !user_access('administer comments')) {
if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) {
if (comment_delete_access_check($comment->cid)) {
$links['comment_delete'] = array(
'title' => t('delete'),
'href' => "comment/delete/{$comment->cid}",
);
}
}
}
return $links;
}