comment_node_url

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 comment_node_url()

A simple helper function.

Rückgabewert

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 676

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen