You are here

function system_test_redirect in SimpleTest 7

1 string reference to 'system_test_redirect'
system_test_menu in tests/system_test.module
Implement hook_menu().

File

tests/system_test.module, line 109

Code

function system_test_redirect($code) {
  $code = (int) $code;
  if ($code != 200) {
    header("Location: " . url('system-test/redirect/200', array(
      'absolute' => TRUE,
    )), TRUE, $code);
    exit;
  }
  return '';
}