function securitytxt_signature_page in Security.txt 7
Security.txt signature page.
1 string reference to 'securitytxt_signature_page'
- securitytxt_menu in ./
securitytxt.module - Implements hook_menu().
File
- ./
securitytxt.pages.inc, line 65 - Page callbacks.
Code
function securitytxt_signature_page() {
$settings = variable_get('securitytxt', array());
if ($settings['enabled'] && $settings['signature_text']) {
drupal_add_http_header('Content-Type', 'text/plain');
print $settings['signature_text'];
drupal_exit();
}
else {
drupal_not_found();
}
}