Done !
| Server IP : 194.181.228.65 / Your IP : 216.73.216.245 Web Server : LiteSpeed System : Linux wn13.webd.pl 5.14.0-687.46.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 11 09:03:19 EDT 2026 x86_64 User : prusit ( 133039) PHP Version : 5.6.40 Disable Function : exec, system, shell_exec, passthru, proc_open, proc_close, popen MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/prusit/public_html/centrumverba/modules/image/tests/ |
Upload File : |
<?php
/**
* @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');
}
if (variable_get('image_module_test_invalid_headers', FALSE) == $uri) {
return array('Content-Type' => 'image/png');
}
}
/**
* 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;
}
/**
* Implements hook_image_effect_info_alter().
*
* Used to keep a count of cache misses in image_effect_definitions().
*/
function image_module_test_image_effect_info_alter(&$effects) {
$image_effects_definition_called = &drupal_static(__FUNCTION__, 0);
$image_effects_definition_called++;
}