Test module for the comment hooks testing.
File
modules/comment/tests/comment_hook_test.moduleView source
<?php
/**
* @file
* Test module for the comment hooks testing.
*/
/**
* Implements hook_comment_publish().
*/
function comment_hook_test_comment_publish($comment) {
$_SESSION['comment_hook_test'][] = __FUNCTION__ . ' called';
}
/**
* Implements hook_comment_unpublish().
*/
function comment_hook_test_comment_unpublish($comment) {
$_SESSION['comment_hook_test'][] = __FUNCTION__ . ' called';
}
Functions
Name | Description |
---|---|
comment_hook_test_comment_publish | Implements hook_comment_publish(). |
comment_hook_test_comment_unpublish | Implements hook_comment_unpublish(). |