drupal函数:hook_comment_insert

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

版本
7
hook_comment_insert(&$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_insert(&$form_values) { $nid = $form_values['nid']; cache_clear_all_like(drupal_url(array('id' => $nid))); } ?>


同步内容