Comment module has a lot of:

$variables['permalink'] = l('#', 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid"));

It'd be much nicer to be able to do:

comment_permalink($text, $cid);

instead.

Comments

dddave’s picture

Version: 7.x-dev » 8.x-dev

Is this still relevant?

catch’s picture

Status: Active » Closed (duplicate)

It's not! entity_uri() did this already.