You are here

function _quote_filter_process_callback in Quote 6

Same name and namespace in other branches
  1. 5 quote.module \_quote_filter_process_callback()
  2. 6.2 quote.module \_quote_filter_process_callback()
  3. 7 quote.module \_quote_filter_process_callback()

Generate and return the quote theming for a quote occurence found by _quote_filter_process.

Parameters

$matches: The RegExp matches (for author and quote) found in _quote_filter_process.

Return value

$output_quote Themed quote.

1 string reference to '_quote_filter_process_callback'
_quote_filter_process in ./quote.module
Replace [quote] tags with markup for display.

File

./quote.module, line 262
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_callback($matches) {
  $quote_author = trim(substr($matches[1], 6));
  $quote_content = _quote_filter_process($matches[2]);
  $quote_output = theme('quote', $quote_content, $quote_author);
  return $quote_output;
}