You are here

function _htmlpurifier_process in HTML Purifier 7.2

Same name and namespace in other branches
  1. 6.2 htmlpurifier.module \_htmlpurifier_process()
  2. 6 htmlpurifier.module \_htmlpurifier_process()
  3. 7 htmlpurifier.module \_htmlpurifier_process()

Process callback, used by htmlpurifier_filter_info().

Passes data along to the helper function with instructions to always try to use this module's custom cache mechanism.

We need this helper function because the filter system passes in $cache as fifth parameter to this hook (which corresponds to whether or not the core filter system itself will cache the data), but we want to cache it always so we need to ignore that parameter.

1 string reference to '_htmlpurifier_process'
htmlpurifier_filter_info in ./htmlpurifier.module
Implements hook_filter_info().

File

./htmlpurifier.module, line 351
Implements HTML Purifier as a Drupal filter.

Code

function _htmlpurifier_process($text, $filter, $format, $langcode, $cache) {
  return _htmlpurifier_process_text($text, $filter, $format, $langcode, TRUE);
}