You are here

function _emptyparagraphkiller_process in Empty paragraph killer 7

Process callback for the emptyparagraphkiller filter.

1 string reference to '_emptyparagraphkiller_process'
emptyparagraphkiller_filter_info in ./emptyparagraphkiller.module
Implements hook_filter_info().

File

./emptyparagraphkiller.module, line 33
Empty paragraph killer: because users are sometimes overzealous with the return key.

Code

function _emptyparagraphkiller_process($text, $filter) {
  return str_replace('[empty-para]', '', $text);
}