Assign a return value for a given operation.
$op: One of the hook_file_[validate,download] operations.
$value: Value for the hook to return.
function file_test_set_return($op, $value) {
$return = variable_get('file_test_return', array());
$return[$op] = $value;
variable_set('file_test_return', $return);
}