comment_node_url

Versions
4.6 – 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 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.

Code

modules/comment/comment.module, line 675

<?php
function comment_node_url() {
  return arg(0) .'/'. arg(1);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.