function syntaxhighlighter_form_comment_form_alter in Syntax Highlighter 7
Same name and namespace in other branches
- 8 syntaxhighlighter.module \syntaxhighlighter_form_comment_form_alter()
- 7.2 syntaxhighlighter.module \syntaxhighlighter_form_comment_form_alter()
Install custom comment validate function
File
- ./
syntaxhighlighter.module, line 259 - Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter
Code
function syntaxhighlighter_form_comment_form_alter(&$form, &$form_state, $form_id) {
$form['#validate'][] = '_syntaxhighlighter_comment_validate';
}