function humanstxt_file in Humans.txt 6
Same name and namespace in other branches
- 7 humanstxt.module \humanstxt_file()
Callback to display humans.txt file.
1 string reference to 'humanstxt_file'
- humanstxt_menu in ./
humanstxt.module - Implements hook_menu().
File
- ./
humanstxt.module, line 39 - humanstxt module file.
Code
function humanstxt_file() {
$content = array();
$content[] = _humanstxt_get_content();
// Trim any extra whitespace and filter out empty strings.
$content = array_map('trim', $content);
$content = array_filter($content);
header('Content-type: text/plain; charset=UTF-8');
echo implode("\n", $content);
exit;
}