1 file_test.module _file_test_log_call($op, $args)

Store the values passed to a hook invocation.

Parameters

$op: One of the hook_file_* operations: 'load', 'validate', 'download', 'insert', 'update', 'copy', 'move', 'delete'.

$args: Values passed to hook.

See also

file_test_get_calls()

file_test_reset()

File

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

Code

function _file_test_log_call($op, $args) {
  $results = state_get('file_test_results', array());
  $results[$op][] = $args;
  state_set('file_test_results', $results);
}