comment.api.php

Hooks provided by the Comment module.

File

modules/comment/comment.api.php

Functions

Name Description
hook_comment_delete The comment is being deleted by the moderator.
hook_comment_insert The comment is being inserted.
hook_comment_load Comments are being loaded from the database.
hook_comment_presave The comment passed validation and is about to be saved.
hook_comment_publish The comment is being published by the moderator.
hook_comment_unpublish The comment is being unpublished by the moderator.
hook_comment_update The comment is being updated.
hook_comment_view The comment is being viewed. This hook can be used to add additional data to the comment before theming.
hook_comment_view_alter The comment was built; the module may modify the structured content.

© 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/7.x