function system_test_set_header

1 string reference to 'system_test_set_header'
system_test_menu in modules/simpletest/tests/system_test.module
Implements hook_menu().

File

modules/simpletest/tests/system_test.module, line 224

Code

function system_test_set_header() {
    drupal_add_http_header($_GET['name'], $_GET['value']);
    return t('The following header was set: %name: %value', array(
        '%name' => $_GET['name'],
        '%value' => $_GET['value'],
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.