You are here

function _mailhandler_filter_process_quoted in Mailhandler 7.2

Filter callback.

1 string reference to '_mailhandler_filter_process_quoted'
mailhandler_filter_info in ./mailhandler.module
Implements hook_filter_info().

File

./mailhandler.module, line 235
Retrieves email for posting as nodes and comments.

Code

function _mailhandler_filter_process_quoted($text, $filter, $format, $langcode, $cache, $cache_id) {
  $lines = explode("\n", $text);
  foreach ($lines as $i => $line) {
    $lines[$i] = ltrim($line, '> ');
  }
  $text = implode("\n", $lines);
  return $text;
}