mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-09-04 00:18:54 +00:00
Initial commit
This commit is contained in:
commit
c5e731d8ae
2773 changed files with 600767 additions and 0 deletions
11
drupal7/web/modules/comment/tests/comment_hook_test.info
Normal file
11
drupal7/web/modules/comment/tests/comment_hook_test.info
Normal 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"
|
20
drupal7/web/modules/comment/tests/comment_hook_test.module
Normal file
20
drupal7/web/modules/comment/tests/comment_hook_test.module
Normal 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');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue