comment_node_url

Versions
5 – 6
comment_node_url()

A simple helper function.

Return value

The 0th and the 1st path components joined by a slash.

▾ 2 functions call comment_node_url()

comment_links in core/modules/comment/comment.module
Build command links for a comment (e.g.\ edit, reply, delete) with respect to the current user's access permissions.
template_preprocess_comment_folded in core/modules/comment/comment.module
Process variables for comment-folded.tpl.php. See alsocomment-folded.tpl.php

Code

core/modules/comment/comment.module, line 675

<?php
function comment_node_url() {
  return arg(0) .'/'. arg(1);
}
?>