function patterns_xmlparser_dump_comment in Patterns 7.2
Same name and namespace in other branches
- 7 patterns_xmlparser/patterns_xmlparser.module \patterns_xmlparser_dump_comment()
File
- patterns_xmlparser/
patterns_xmlparser.module, line 85
Code
function patterns_xmlparser_dump_comment($text = NULL, $append = NULL) {
$text = !empty($text) ? $text : ' ';
$dump = '<!-- ' . $text . ' -->';
return empty($append) ? $dump : $append . "\n" . $dump;
}