You are here

function _syntaxhighlighter_format_has_syntaxhighlighter_filter in Syntax Highlighter 8

Same name and namespace in other branches
  1. 7.2 syntaxhighlighter.module \_syntaxhighlighter_format_has_syntaxhighlighter_filter()
  2. 7 syntaxhighlighter.module \_syntaxhighlighter_format_has_syntaxhighlighter_filter()

Check if the format uses the syntaxhighlighter filter.

2 calls to _syntaxhighlighter_format_has_syntaxhighlighter_filter()
_syntaxhighlighter_comment_validate in ./syntaxhighlighter.module
Validate the comment input text to be sure that there are no bad tags.
_syntaxhighlighter_node_validate in ./syntaxhighlighter.module
Validate the node input text to be sure that there are no bad tags.

File

./syntaxhighlighter.module, line 386
Syntax highlight code using the SyntaxHighlighter Javascript library.

Code

function _syntaxhighlighter_format_has_syntaxhighlighter_filter($format_id) {
  return FilterFormat::load($format_id)
    ->filters()
    ->has('filter_syntaxhighlighter');
}