drupal函数:hook_comment_publish

modules/comment/comment.api.php, 79行

版本
7
hook_comment_publish($form_values)

评论被管理员发布.

参数

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

返回值

Nothing.

相关主题

Hooks
Allow modules to interact with the Drupal core.

代码

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


同步内容