You are here

function _htmlpurifier_clear_cache in HTML Purifier 6.2

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

Clears the HTML Purifier internal Drupal cache.

1 string reference to '_htmlpurifier_clear_cache'
_htmlpurifier_settings in ./htmlpurifier.module
Generates a settings form for configuring HTML Purifier.

File

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

Code

function _htmlpurifier_clear_cache($form, &$form_state) {
  drupal_set_message("Cache cleared");
  db_query("DELETE FROM {cache_htmlpurifier}");
  db_query("DELETE FROM {cache} WHERE cid LIKE '%s%%'", 'htmlpurifier:');
}