You are here

function _codefilter_process_code_callback in Code Filter 7

Callback to replace content of the <code> elements.

Parameters

array $matches: An array of matches passed by preg_replace_callback().

Return value

string A formatted string.

1 string reference to '_codefilter_process_code_callback'
_codefilter_process in ./codefilter.module
Implements hook_filter_FILTER_process().

File

./codefilter.module, line 78
Text filter for highlighting PHP source code.

Code

function _codefilter_process_code_callback($matches) {
  return codefilter_process_code($matches[2], $matches[1]);
}