1 file_test.module | file_test_set_return($op, $value) |
Assign a return value for a given operation.
Parameters
$op: One of the hook_file_[validate,download] operations.
$value: Value for the hook to return.
See also
File
- core/
modules/ simpletest/ tests/ file_test.module, line 250 - Helper module for the file tests.
Code
function file_test_set_return($op, $value) {
$return = state_get('file_test_return', array());
$return[$op] = $value;
state_set('file_test_return', $return);
}