diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 678c92bf2..0b3fc2d8c 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -97,6 +97,7 @@ function comment_entity_info() { 'comment' => array( 'label' => t('Comment'), 'base table' => 'comment', + 'path callback' => 'comment_path', 'fieldable' => TRUE, 'controller class' => 'CommentController', 'object keys' => array( @@ -126,6 +127,13 @@ function comment_entity_info() { } /** + * Entity path callback. + */ +function comment_path($comment) { + return 'comment/' . $comment->cid; +} + +/** * Implements hook_theme(). */ function comment_theme() { |