You are here

function comment_uri in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/comment/comment.module \comment_uri()
  2. 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,
    ),
  );
}