summaryrefslogtreecommitdiff
path: root/modules/image/tests/image_module_test.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 10:29:35 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 10:29:35 -0700
commitc5713b25f3108e5f91477990a43780c86398553c (patch)
tree796763a3322b94ffab2126d767001bf4274c0709 /modules/image/tests/image_module_test.module
parent72ef1daad0b4a05014705edb36790f3c5e9bacf6 (diff)
downloadbrdo-c5713b25f3108e5f91477990a43780c86398553c.tar.gz
brdo-c5713b25f3108e5f91477990a43780c86398553c.tar.bz2
Issue #1129642 by jbrown: Fixed Populate HTML image tags with dimension attributes (like D6 imagefield) without re-introducing I/O (followup).
Diffstat (limited to 'modules/image/tests/image_module_test.module')
-rw-r--r--modules/image/tests/image_module_test.module28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/image/tests/image_module_test.module b/modules/image/tests/image_module_test.module
index 038bd155c..766a9d957 100644
--- a/modules/image/tests/image_module_test.module
+++ b/modules/image/tests/image_module_test.module
@@ -11,3 +11,31 @@ function image_module_test_file_download($uri) {
}
return -1;
}
+
+/**
+ * Implements hook_image_effect_info().
+ */
+function image_module_test_image_effect_info() {
+ $effects = array(
+ 'image_module_test_null' => array(
+ 'effect callback' => 'image_module_test_null_effect',
+ ),
+ );
+
+ return $effects;
+}
+
+/**
+ * Image effect callback; Null.
+ *
+ * @param $image
+ * An image object returned by image_load().
+ * @param $data
+ * An array with no attributes.
+ *
+ * @return
+ * TRUE
+ */
+function image_module_test_null_effect(array &$image, array $data) {
+ return TRUE;
+}