You are here

function comment_node_url in Drupal 6

Same name and namespace in other branches
  1. 4 modules/comment.module \comment_node_url()
  2. 5 modules/comment/comment.module \comment_node_url()

A simple helper function.

Return value

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

2 calls to comment_node_url()
comment_links in 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 modules/comment/comment.module
Process variables for comment-folded.tpl.php.

File

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

Code

function comment_node_url() {
  return arg(0) . '/' . arg(1);
}