hook_comment_insert
function hook_comment_insert
hook_comment_insert($comment)
The comment is being inserted.
Parameters
$comment: The comment object.
Related topics
File
- modules/comment/comment.api.php, line 32
- Hooks provided by the Comment module.
Code
function hook_comment_insert($comment) { // Reindex the node when comments are added. search_touch_node($comment->nid); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.api.php/function/hook_comment_insert/7.x