hook_comment_view

  1. drupal
    1. drupal7
Versionen
drupal7 hook_comment_view(&$comment)

The comment is being viewed. This hook can be used to add additional data to the comment before theming.

Übergabeparameter

$comment Passes in the comment the action is being performed on.

Rückgabewert

Nothing.

Verwandte Themen

Code

modules/comment/comment.api.php, line 65

<?php
function hook_comment_view(&$comment) {
  // how old is the comment
  $comment->time_ago = time() - $comment->timestamp;
}
?>

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