Initial commit

This commit is contained in:
Mauricio Dinarte 2024-07-22 21:38:34 -06:00
commit 1664d5cfe6
2772 changed files with 600692 additions and 0 deletions

View file

@ -0,0 +1,11 @@
name = "Comment Hooks Test"
description = "Support module for comment hook tests."
core = 7.x
package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2024-03-06
version = "7.100"
project = "drupal"
datestamp = "1709734591"

View file

@ -0,0 +1,20 @@
<?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');
}