1 image_module_test.module image_module_test_file_download($uri)

File

core/modules/image/tests/image_module_test/image_module_test.module, line 7
Provides Image module hook implementations for testing purposes.

Code

function image_module_test_file_download($uri) {
  if (state_get('image_module_test_file_download', FALSE) == $uri) {
    return array('X-Image-Owned-By' => 'image_module_test');
  }
  if (state_get('image_module_test_invalid_headers', FALSE) == $uri) {
    return array('Content-Type' => 'image/png');
  }
}