1 file_test.module _file_test_get_return($op)

Load the appropriate return value.

Parameters

$op: One of the hook_file_[validate,download] operations.

Return value

Value set by file_test_set_return().:

See also

file_test_set_return()

file_test_reset()

File

core/modules/simpletest/tests/file_test.module, line 235
Helper module for the file tests.

Code

function _file_test_get_return($op) {
  $return = state_get('file_test_return', array($op => NULL));
  return $return[$op];
}