summaryrefslogtreecommitdiff
path: root/modules/image/tests/image_module_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image/tests/image_module_test.module')
-rw-r--r--modules/image/tests/image_module_test.module14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/image/tests/image_module_test.module b/modules/image/tests/image_module_test.module
new file mode 100644
index 000000000..5aa9dadb5
--- /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;
+}