hook_comment_publish

  1. drupal
    1. drupal7
Versionen
drupal7 hook_comment_publish($form_values)

The comment is being published by the moderator.

Übergabeparameter

$form_values Passes in an array of form values submitted by the user.

Rückgabewert

Nothing.

Verwandte Themen

Code

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

<?php
function hook_comment_publish($form_values) {
  drupal_set_message(t('Comment: @subject has been published', array('@subject' => $form_values['subject'])));
}
?>

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