comment_hook_test.module
Test module for the comment hooks testing.
File
-
modules/
comment/ tests/ comment_hook_test.module
View 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
Title | Deprecated | Summary |
---|---|---|
comment_hook_test_comment_publish | Implements hook_comment_publish(). | |
comment_hook_test_comment_unpublish | Implements hook_comment_unpublish(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.