You are here

function _htmlpurifier_clear_cache in HTML Purifier 7

Same name and namespace in other branches
  1. 6.2 htmlpurifier.module \_htmlpurifier_clear_cache()
  2. 7.2 htmlpurifier.module \_htmlpurifier_clear_cache()

Clears the HTML Purifier internal Drupal cache.

1 string reference to '_htmlpurifier_clear_cache'
htmlpurifier_admin_settings in ./htmlpurifier.admin.inc
Generate a form for configuring overall HTML Purifier settings.

File

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

Code

function _htmlpurifier_clear_cache($form, &$form_state) {
  drupal_set_message(t('Cache cleared.'));
  cache_clear_all('*', 'cache_htmlpurifier', TRUE);
  cache_clear_all('htmlpurifier:', 'cache', TRUE);
}