function glossify_comment in Glossify 6.3
Implementation of hook_comment().
File
- ./
glossify.module, line 351
Code
function glossify_comment(&$a1, $op) {
if ($op == 'view') {
// Process comment text if set to 'non-filter' mode and comment processing enabled.
// Currently the $a1->format is irrelevant.
$glossify_mode = variable_get('glossify_process_mode', GLOSSIFY_USE_FILTER);
if ($glossify_mode == GLOSSIFY_WITHOUT_FILTER) {
$a1->comment = glossify_filter('process', 0, $a1->format, $a1->comment);
}
}
}