function _quote_filter_process in Quote 6.2
Same name and namespace in other branches
- 5 quote.module \_quote_filter_process()
- 6 quote.module \_quote_filter_process()
- 7 quote.module \_quote_filter_process()
Replace [quote] tags with markup for display.
Parameters
$text: The text with the [quote] tags that need to be replaced with HTML tags.
Return value
$text Filtered text.
3 calls to _quote_filter_process()
- quote_filter in ./
quote.module - Implementation of hook_filter().
- quote_filter_tips in ./
quote.module - Implementation of hook_filter_tips().
- _quote_filter_process_callback in ./
quote.module - Generate and return the quote theming for a quote occurence found by _quote_filter_process.
File
- ./
quote.module, line 246 - The quote module provides a filter and appropriate links that allow users to quote nodes and other comments in their own comments.
Code
function _quote_filter_process($text) {
if (stristr($text, '[quote')) {
// Single regexp with callback allowing for theme calls and quote
// nesting/recursion with regexp code from
// http://de.php.net/manual/en/function.preg-replace-callback.php#85836
$text = preg_replace_callback('#\\[(quote.*?)]((?>\\[(?!/?quote[^[]*?])|[^[]|(?R))*)\\[/quote]#is', '_quote_filter_process_callback', $text);
}
return $text;
}