function syntaxhighlighter_form_node_form_alter in Syntax Highlighter 8
Implements hook_form_BASE_FORM_ID_alter().
Install custom node validate function.
File
- ./
syntaxhighlighter.module, line 268 - Syntax highlight code using the SyntaxHighlighter Javascript library.
Code
function syntaxhighlighter_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['#validate'][] = '_syntaxhighlighter_node_validate';
}