function _bbcode_process in Bbcode 7
Implement hook_filter_FILTER_process
1 string reference to '_bbcode_process'
- bbcode_filter_info in ./
bbcode.module - Implement hook_filter_info
File
- ./
bbcode.module, line 28
Code
function _bbcode_process($text, $filter, $format) {
include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'bbcode') . '/bbcode-filter.inc';
if ($filter->settings['bbcode_debug']) {
$start_time = microtime(true);
$ret = _bbcode_filter_process($text, $format->format);
$stop_time = microtime(true);
$ret .= '<hr />' . l('BBCode', 'filter/tips/' . $format->format) . ' parsed on ' . date('r') . '<br />Execution time: ' . ($stop_time - $start_time) . ' seconds.<hr />';
return $ret;
}
else {
return _bbcode_filter_process($text, $filter->settings);
}
}