function syntaxhighlighter_form_comment_form_alter in Syntax Highlighter 8
Same name and namespace in other branches
- 7.2 syntaxhighlighter.module \syntaxhighlighter_form_comment_form_alter()
- 7 syntaxhighlighter.module \syntaxhighlighter_form_comment_form_alter()
Implements hook_form_BASE_FORM_ID_alter().
Install custom comment validate function.
File
- ./
syntaxhighlighter.module, line 293 - Syntax highlight code using the SyntaxHighlighter Javascript library.
Code
function syntaxhighlighter_form_comment_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['#validate'][] = '_syntaxhighlighter_comment_validate';
}