You are here

function patterns_yamlparser_dump_comment in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_yamlparser/patterns_yamlparser.module \patterns_yamlparser_dump_comment()

File

patterns_yamlparser/patterns_yamlparser.module, line 104

Code

function patterns_yamlparser_dump_comment($text = NULL, $append = NULL) {
  if (is_null($text)) {
    return FALSE;
  }
  $dump = empty($append) ? '' : $append . "\n";
  $dump .= "# " . $text;
  return $dump;
}