is activated, then all Moodle text is parsed by it to have links
added to words.
/// $text is raw text (originally from a user)
/// $format is one of the format constants, defined above
+ global $CFG;
+
switch ($format) {
case FORMAT_HTML:
replace_smilies($text);
if (!isset($options->para)) {
$options->para=true;
}
+ if (!empty($CFG->librarypath)) {
+ if (file_exists("$CFG->dirroot/$CFG->librarypath/librarylib.php")) {
+ include_once("$CFG->dirroot/$CFG->librarypath/librarylib.php");
+ $text = librarytexttohtml($text);
+ }
+ }
return text_to_html($text, $options->smiley, $options->para);
break;
}