function comment_uri

Same name and namespace in other branches
  1. 9 core/modules/comment/comment.module \comment_uri()
  2. 8.9.x core/modules/comment/comment.module \comment_uri()
  3. 10 core/modules/comment/comment.module \comment_uri()
  4. 11.x 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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.