You are here

function syntaxhighlighter_comment in Syntax Highlighter 6

Same name and namespace in other branches
  1. 6.2 syntaxhighlighter.module \syntaxhighlighter_comment()

Validate on comment input text to be sure there is no bad {syntaxhighlighter} tags

File

./syntaxhighlighter.module, line 213
Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter

Code

function syntaxhighlighter_comment(&$a1, $op) {
  switch ($op) {
    case 'validate':
      _syntaxhighlighter_validate_input('comment', $a1['comment']);
      break;
  }
}