You are here

function patterns_xmlparser_dump_comment in Patterns 7

Same name and namespace in other branches
  1. 7.2 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;
}