function _htmlpurifier_clear_cache in HTML Purifier 7.2
Same name and namespace in other branches
- 6.2 htmlpurifier.module \_htmlpurifier_clear_cache()
- 7 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 714 - 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);
}