function syntaxhighlighter_modules_disabled in Syntax Highlighter 7
Same name and namespace in other branches
- 8 syntaxhighlighter.module \syntaxhighlighter_modules_disabled()
- 7.2 syntaxhighlighter.module \syntaxhighlighter_modules_disabled()
File
- ./
syntaxhighlighter.module, line 146 - Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter
Code
function syntaxhighlighter_modules_disabled($modules) {
if (in_array('php', $modules) && variable_get('syntaxhighlighter_inject', SYNTAXHIGHLIGHTER_INJECT_EXCEPT_LISTED) == SYNTAXHIGHLIGHTER_INJECT_PHP) {
drupal_set_message(t('The "%syntaxhighlighter" module is currently configured to use PHP for js/css code inject control, disabling the "%module_name" module will effectively turn off syntax highlighting on all pages.', array(
'%syntaxhighlighter' => t('Syntax highlighter'),
'%module_name' => t('PHP filter'),
)), 'warning');
}
}