Same name and namespace in other branches
  1. 10 core/modules/comment/comment.module \comment_uri()
  2. 8.9.x core/modules/comment/comment.module \comment_uri()
  3. 9 core/modules/comment/comment.module \comment_uri()

Implements callback_entity_info_uri().

1 string reference to 'comment_uri'
comment_entity_info in modules/comment/comment.module
Implements hook_entity_info().

File

modules/comment/comment.module, line 157
Enables users to comment on published content.

Code

function comment_uri($comment) {
  return array(
    'path' => 'comment/' . $comment->cid,
    'options' => array(
      'fragment' => 'comment-' . $comment->cid,
    ),
  );
}