You are here

function browser_test_refresh_header in SimpleTest 7

1 string reference to 'browser_test_refresh_header'
browser_test_menu in tests/browser_test.module
Implement hook_menu().

File

tests/browser_test.module, line 66
Provide various pages for testing the internal browser.

Code

function browser_test_refresh_header() {
  if (!isset($_GET['refresh'])) {
    $url = url('browser_test/refresh/header', array(
      'absolute' => TRUE,
      'query' => array(
        'refresh' => 'true',
      ),
    ));
    drupal_add_http_header('Location', $url);
    return '';
  }
  echo 'Refresh successful';
  exit;
}