You are here

function quote_filter in Quote 6

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

Implementation of hook_filter().

File

./quote.module, line 137
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($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'list':
      return array(
        0 => t('Quote filter'),
      );
    case 'description':
      return t('Converts [quote] tags into <div> tags. Must usually apply after HTML filters unless an exception is made for <div> tags.');
    case 'process':
      return _quote_filter_process($text);
    default:
      return $text;
  }
}