function xbbcode_highlighter_init in Extensible BBCode 5
File
- xbbcode_highlighter/
xbbcode_highlighter.module, line 3
Code
function xbbcode_highlighter_init() {
$text = variable_get('xbbcode_highlighter_pear_highlighter', false);
if (!@file_exists("{$text}/Text/Highlighter.php")) {
variable_set('xbbcode_highlighter_pear_highlighter', false);
}
else {
set_include_path(get_include_path() . PATH_SEPARATOR . $text);
}
$parser = variable_get('xbbcode_highlighter_pear_parser', false);
if (!@file_exists("{$parser}/XML/Parser.php")) {
variable_set('xbbcode_highlighter_pear_parser', false);
}
else {
if ($parser != $text) {
set_include_path(get_include_path() . PATH_SEPARATOR . $parser);
}
}
}