summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2010-08-23 09:04:57 (GMT)
committerDries Buytaert2010-08-23 09:04:57 (GMT)
commitc16bee54ec38e9ae6f322a67af45491db3589c84 (patch)
tree57f3ed0113136b0d4458b55989c59f8aae8ef564
parent7c57f94315b7f476f37877970b57098fe8e56aab (diff)
- Patch #851878 by justinrandell, flobruit, ksenzee, aaron, litwol, Damien Tournoud: added missing files.
-rw-r--r--modules/image/tests/image_module_test.info8
-rw-r--r--modules/image/tests/image_module_test.module14
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/image/tests/image_module_test.info b/modules/image/tests/image_module_test.info
new file mode 100644
index 0000000..144a904
--- /dev/null
+++ b/modules/image/tests/image_module_test.info
@@ -0,0 +1,8 @@
+; $Id$
+name = Image test
+description = Provides hook implementations for testing Image module functionality.
+package = Core
+version = VERSION
+core = 7.x
+files[] = image_module_test.module
+hidden = TRUE
diff --git a/modules/image/tests/image_module_test.module b/modules/image/tests/image_module_test.module
new file mode 100644
index 0000000..5aa9dad
--- /dev/null
+++ b/modules/image/tests/image_module_test.module
@@ -0,0 +1,14 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Provides Image module hook implementations for testing purposes.
+ */
+
+function image_module_test_file_download($uri) {
+ if (variable_get('image_module_test_file_download', FALSE) == $uri) {
+ return array('X-Image-Owned-By' => 'image_module_test');
+ }
+ return -1;
+}