comment_invoke_comment

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 comment_invoke_comment(&$comment, $op)

Invoke a hook_comment() operation in all modules.

Übergabeparameter

&$comment A comment object.

$op A string containing the name of the comment operation.

Rückgabewert

The returned value of the invoked hooks.

▾ 5 functions call comment_invoke_comment()

comment_admin_overview_submit in modules/comment/comment.admin.inc
Process comment_admin_overview form submissions.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
comment_validate in modules/comment/comment.module
Validate comment data.
theme_comment_view in modules/comment/comment.module
Themes a single comment and related items.
_comment_delete_thread in modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.

Code

modules/comment/comment.module, line 1966

<?php
function comment_invoke_comment(&$comment, $op) {
  $return = array();
  foreach (module_implements('comment') as $name) {
    $function = $name . '_comment';
    $result = $function($comment, $op);
    if (isset($result) && is_array($result)) {
      $return = array_merge($return, $result);
    }
    else if (isset($result)) {
      $return[] = $result;
    }
  }
  return $return;
}
?>

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