diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-09 03:22:30 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-09 03:22:30 +0000 |
commit | 7d0e6716940f0c46f9bc0ebe8bf14f331ca1b821 (patch) | |
tree | ce8d27ec636390ea9d3b79b220af7827863e09b3 /modules/translation/tests | |
parent | b737a40c76d85e8836de548a923d371492bfafa5 (diff) | |
download | brdo-7d0e6716940f0c46f9bc0ebe8bf14f331ca1b821.tar.gz brdo-7d0e6716940f0c46f9bc0ebe8bf14f331ca1b821.tar.bz2 |
#357785 by miro_dietiker, plach: Fixed tnid value lost in case of node resave.
Diffstat (limited to 'modules/translation/tests')
-rw-r--r-- | modules/translation/tests/translation_test.info | 8 | ||||
-rw-r--r-- | modules/translation/tests/translation_test.module | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/translation/tests/translation_test.info b/modules/translation/tests/translation_test.info new file mode 100644 index 000000000..c4c1a8e94 --- /dev/null +++ b/modules/translation/tests/translation_test.info @@ -0,0 +1,8 @@ +; $Id$ +name = "Content Translation Test" +description = "Support module for the content translation tests." +core = 7.x +package = Testing +files[] = translation_test.module +version = VERSION +hidden = TRUE diff --git a/modules/translation/tests/translation_test.module b/modules/translation/tests/translation_test.module new file mode 100644 index 000000000..2bb860d6f --- /dev/null +++ b/modules/translation/tests/translation_test.module @@ -0,0 +1,14 @@ +<?php +// $Id$ + +/** + * @file + * Mock module for content translation tests. + */ + +/** + * Implements hook_node_insert(). + */ +function translation_test_node_insert($node) { + drupal_write_record('node', $node, 'nid'); +} |