function browser_test_refresh_meta in SimpleTest 7
1 string reference to 'browser_test_refresh_meta'
- browser_test_menu in tests/
browser_test.module - Implement hook_menu().
File
- tests/
browser_test.module, line 56 - Provide various pages for testing the internal browser.
Code
function browser_test_refresh_meta() {
if (!isset($_GET['refresh'])) {
$url = url('browser_test/refresh/meta', array(
'absolute' => TRUE,
'query' => array(
'refresh' => 'true',
),
));
drupal_add_html_head('<meta http-equiv="Refresh" content="0; URL=' . $url . '">');
return '';
}
echo 'Refresh successful';
exit;
}